mirror of
https://github.com/YunoHost-Apps/immich_ynh.git
synced 2024-09-03 20:36:24 +02:00
Could it run ?!
This commit is contained in:
parent
32cefd3f2c
commit
14a379508c
2 changed files with 3 additions and 6 deletions
|
@ -10,7 +10,7 @@ WorkingDirectory=__FINALPATH__/
|
|||
Environment="NODE_ENV=production"
|
||||
Environment="__YNH_NODE_LOAD_PATH__"
|
||||
EnvironmentFile=__FINALPATH__/.env
|
||||
ExecStart=__YNH_NODE__ web/usr/src/app/build/index.js
|
||||
ExecStart=__YNH_NODE__ web/build/index.js
|
||||
StandardOutput=append:/var/log/__APP__/__APP__-web.log
|
||||
StandardError=inherit
|
||||
|
||||
|
|
|
@ -162,14 +162,11 @@ popd
|
|||
mkdir -p "$final_path/web/"
|
||||
chown -R $app:$app $final_path/build/output/usr/src/app
|
||||
pushd $final_path/build/output/usr/src/app
|
||||
sed -i 's/3000/'$port'/' package.json
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH npm ci
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH npm run build
|
||||
# npm config set user 0
|
||||
# npm config set unsafe-perm true
|
||||
# sudo /bin/sh entrypoint.sh
|
||||
# sudo tree
|
||||
popd
|
||||
#rsync -a "$final_path/build/output/usr/src/app/build/" "$final_path/web/"
|
||||
rsync -a "$final_path/build/output/usr/src/app/" "$final_path/web/"
|
||||
|
||||
#ynh_secure_remove --file="$final_path/build"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue