mirror of
https://github.com/YunoHost-Apps/elabftw_ynh.git
synced 2024-09-03 18:26:23 +02:00
all composer commands need workdir
This commit is contained in:
parent
b5e89c196a
commit
b49952e074
2 changed files with 4 additions and 4 deletions
|
@ -39,12 +39,12 @@ chown -R "$app:www-data" "$install_dir"
|
||||||
ynh_script_progression --message="Installing $app with Composer..." --weight=30
|
ynh_script_progression --message="Installing $app with Composer..." --weight=30
|
||||||
|
|
||||||
pushd "$install_dir/sources"
|
pushd "$install_dir/sources"
|
||||||
ynh_install_composer --install_args="--no-dev" --workdir="$install_dir/sources"
|
ynh_install_composer --workdir="$install_dir/sources" --install_args="--no-dev"
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn install --pure-lockfile --prod
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn install --pure-lockfile --prod
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn run buildall
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn run buildall
|
||||||
|
|
||||||
ynh_composer_exec --commands="install --prefer-dist --no-cache --no-progress --no-dev -a"
|
ynh_composer_exec --workdir="$install_dir/sources" --commands="install --prefer-dist --no-cache --no-progress --no-dev -a"
|
||||||
|
|
||||||
ynh_secure_remove node_modules
|
ynh_secure_remove node_modules
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn cache clean
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn cache clean
|
||||||
|
|
|
@ -46,12 +46,12 @@ chown -R "$app:www-data" "$install_dir"
|
||||||
ynh_script_progression --message="Building $app with Composer..." --weight=30
|
ynh_script_progression --message="Building $app with Composer..." --weight=30
|
||||||
|
|
||||||
pushd "$install_dir/sources"
|
pushd "$install_dir/sources"
|
||||||
ynh_install_composer --install_args="--no-dev" --workdir="$install_dir/sources"
|
ynh_install_composer --workdir="$install_dir/sources" --install_args="--no-dev"
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn install --pure-lockfile --prod
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn install --pure-lockfile --prod
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn run buildall
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn run buildall
|
||||||
|
|
||||||
ynh_composer_exec --commands="install --prefer-dist --no-cache --no-progress --no-dev -a"
|
ynh_composer_exec --workdir="$install_dir/sources" --commands="install --prefer-dist --no-cache --no-progress --no-dev -a"
|
||||||
|
|
||||||
ynh_secure_remove node_modules
|
ynh_secure_remove node_modules
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn cache clean
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn cache clean
|
||||||
|
|
Loading…
Reference in a new issue