From acd19a0d1d06be256b9bee082415b00a4fb82362 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Fri, 25 Feb 2022 18:43:07 +0100 Subject: [PATCH] Bugfix #77 by "shards install" with "--production" See: https://github.com/iv-org/invidious/issues/2918#issuecomment-1048146335 --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 27c6ddb..8d0a41c 100644 --- a/scripts/install +++ b/scripts/install @@ -135,7 +135,7 @@ ynh_add_nginx_config ynh_script_progression --message="Building Invidious.. (this will take some time and resources!)" --weight=60 pushd "$final_path" - ynh_exec_warn_less shards update && shards install + ynh_exec_warn_less shards update && shards install --production ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release popd diff --git a/scripts/upgrade b/scripts/upgrade index 46f2b30..aca24ab 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,7 +115,7 @@ then #git checkout master git reset --hard --quiet $version_commit git pull - ynh_exec_warn_less shards update && shards install + ynh_exec_warn_less shards update && shards install --production ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release popd fi