From 8f31c4666d5ecdf9a5953aa08f5035eb1f1f3566 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 4 Jan 2022 14:31:04 +0100 Subject: [PATCH] Set env to prod --- scripts/install | 1 - scripts/upgrade | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index b83938f..01bf821 100644 --- a/scripts/install +++ b/scripts/install @@ -128,7 +128,6 @@ pushd $final_path ynh_use_nodejs ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build - #ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn link popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9dce280..734454c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -131,10 +131,9 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st if [ "$upgrade_type" == "UPGRADE_APP" ] then pushd $final_path - ynh_use_nodejs + ynh_use_nodejs ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn link + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build popd fi