diff --git a/conf/systemd.service b/conf/systemd.service index cb2ee0d..6f8a2e5 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -#Environment=NODE_ENV=production +Environment=NODE_ENV=production Environment="__YNH_NODE_LOAD_PATH__" ExecStart=__YNH_NPM__ run start-env diff --git a/scripts/install b/scripts/install index 65d8709..d4cbfde 100755 --- a/scripts/install +++ b/scripts/install @@ -53,7 +53,7 @@ ynh_script_progression --message="Configuring the app..." --weight=15 pushd $install_dir ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn build popd