1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lingva_ynh.git synced 2024-09-03 19:36:20 +02:00

perbaiki galat cypress

This commit is contained in:
Neko Nekowazarashi 2023-05-29 18:06:51 +07:00
parent 18884c7a0f
commit d0ccedf6e8
3 changed files with 5 additions and 5 deletions

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
ExecStart=/usr/bin/npx start -p __PORT__
ExecStart=/usr/bin/npx next start -p __PORT__
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit

View file

@ -55,9 +55,9 @@ chown $app:$app "$install_dir/.env.local"
#=================================================
ynh_script_progression --message="Building the app..." --weight=1
npm install --prefix "$install_dir"
CYPRESS_CACHE_FOLDER="$install_dir/.cache/cypress npm install --prefix "$install_dir"
npx next telemetry disable
npm run build --prefix "$install_dir"
CYPRESS_CACHE_FOLDER="$install_dir/.cache/cypress npm run build --prefix "$install_dir"
#=================================================
# GENERIC FINALIZATION

View file

@ -116,9 +116,9 @@ chown $app:$app "$install_dir/.env.local"
#=================================================
ynh_script_progression --message="Rebuilding the app..." --weight=1
npm install --prefix "$install_dir"
CYPRESS_CACHE_FOLDER="$install_dir/.cache/cypress" npm install --prefix "$install_dir"
npx next telemetry disable
npm run build --prefix "$install_dir"
CYPRESS_CACHE_FOLDER="$install_dir/.cache/cypress" npm run build --prefix "$install_dir"
#=================================================
# START SYSTEMD SERVICE