mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
fix
This commit is contained in:
parent
9987a3ec41
commit
89048c3e7e
2 changed files with 4 additions and 3 deletions
|
@ -6,7 +6,7 @@ After=syslog.target network.target
|
|||
Type=simple
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__/dist
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
#Environment=ETHERPAD_PRODUCTION=true
|
||||
Environment="NODE_ENV=production"
|
||||
#Environment="__YNH_NODE_LOAD_PATH__"
|
||||
|
|
|
@ -84,8 +84,9 @@ 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 $install_dir/admin && $ynh_npm install -g pnpm && pnpm install && pnpm run build --outDir ./dist
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $install_dir/ui && pnpm install && pnpm run build --outDir ./dist
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install -g pnpm
|
||||
#ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $install_dir/admin && $ynh_npm install -g pnpm && pnpm install && pnpm run build --outDir ./dist
|
||||
#ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $install_dir/ui && pnpm install && pnpm run build --outDir ./dist
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true bin/installDeps.sh && ynh_secure_remove ~/.npm && ynh_secure_remove ~/.local && ynh_secure_remove ~/.cache
|
||||
popd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue