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:
parent
18884c7a0f
commit
d0ccedf6e8
3 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
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
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||||
StandardError=inherit
|
StandardError=inherit
|
||||||
|
|
||||||
|
|
|
@ -55,9 +55,9 @@ chown $app:$app "$install_dir/.env.local"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Building the app..." --weight=1
|
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
|
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
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -116,9 +116,9 @@ chown $app:$app "$install_dir/.env.local"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Rebuilding the app..." --weight=1
|
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
|
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
|
# START SYSTEMD SERVICE
|
||||||
|
|
Loading…
Reference in a new issue