mirror of
https://github.com/YunoHost-Apps/send_ynh.git
synced 2024-11-25 15:31:36 +01:00
Fix
This commit is contained in:
parent
f0f0587afd
commit
9f8e5adbe2
@ -9,7 +9,7 @@ Group=__APP__
|
|||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/
|
||||||
Environment="NODE_ENV=production"
|
Environment="NODE_ENV=production"
|
||||||
#Environment="__YNH_NODE_LOAD_PATH__"
|
#Environment="__YNH_NODE_LOAD_PATH__"
|
||||||
ExecStart=__YNH_NODE__ __FINALPATH__/server/bin/prod.js
|
ExecStart=__FINALPATH__/server/bin/prod.js
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
# Sandboxing options to harden security
|
# Sandboxing options to harden security
|
||||||
|
@ -125,10 +125,16 @@ chown $app "$final_path/server/config.js"
|
|||||||
#==============================================
|
#==============================================
|
||||||
ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=20
|
ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=20
|
||||||
|
|
||||||
|
#pushd "$final_path"
|
||||||
|
# ynh_use_nodejs
|
||||||
|
# ynh_exec_warn_less ynh_npm install
|
||||||
|
# ynh_exec_warn_less ynh_npm run build
|
||||||
|
#popd
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less ynh_npm install
|
ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" npm install
|
||||||
ynh_exec_warn_less ynh_npm run build
|
ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" npm run build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -118,11 +118,16 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|||||||
then
|
then
|
||||||
ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=16
|
ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=16
|
||||||
|
|
||||||
|
#pushd "$final_path"
|
||||||
|
# ynh_use_nodejs
|
||||||
|
# ynh_exec_warn_less ynh_npm install
|
||||||
|
# ynh_exec_warn_less ynh_npm run build
|
||||||
|
#popd
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less ynh_npm install
|
ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" npm install
|
||||||
ynh_exec_warn_less ynh_npm run build
|
ynh_exec_warn_less ynh_exec_as $app env "$ynh_node_load_PATH" npm run build
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user