diff --git a/conf/systemd.service b/conf/systemd.service index 1192172..e5c8a67 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,7 +6,7 @@ After=network.target Type=simple User=__APP__ Group=__APP__ -WorkingDirectory=__INSTALL_DIR__/server +WorkingDirectory=__INSTALL_DIR__ Environment="__YNH_NODE_LOAD_PATH__" Environment="NODE_ENV=production" ExecStart=__YNH_NPM__ start --prod diff --git a/scripts/install b/scripts/install index 08cc378..dcf3dbd 100755 --- a/scripts/install +++ b/scripts/install @@ -68,9 +68,6 @@ ynh_script_progression --message="Installing $app..." --weight=10 pushd $install_dir ynh_use_nodejs ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install -popd - -pushd $install_dir/server ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm run db:init popd