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

fix yarn build command

This commit is contained in:
lapineige 2023-09-23 23:10:35 +02:00 committed by GitHub
parent ff7732f3b3
commit 211a0567c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,13 +96,13 @@ chown $app:$app "$install_dir/config.json"
### ynh_store_file_checksum --file="$install_dir/some_config_file" ### ynh_store_file_checksum --file="$install_dir/some_config_file"
#================================================= #=================================================
# INSTALL YARN # INSTALL YARN AND APP
#================================================= #=================================================
ynh_script_progression --message="Installing yarn dependency..." --weight=15 ynh_script_progression --message="Installing yarn dependency and building the app..." --weight=15
pushd $install_dir pushd $install_dir
ynh_use_nodejs ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn build --config $install_dir/config.json# there is no "install" command, only build
popd popd
#================================================= #=================================================
# SETUP APPLICATION WITH CURL # SETUP APPLICATION WITH CURL
@ -126,4 +126,4 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Installation of $app completed" --last ynh_script_progression --message="Installation of $app completed" --last