mirror of
https://github.com/YunoHost-Apps/elabftw_ynh.git
synced 2024-09-03 18:26:23 +02:00
Fix: run composer in install dir
This commit is contained in:
parent
2a22e7f8cb
commit
7602aa4d97
2 changed files with 6 additions and 16 deletions
|
@ -21,13 +21,6 @@ ynh_script_progression --message="Installing NodeJS..." --weight=1
|
|||
|
||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
#=================================================
|
||||
# INSTALL AND INITIALIZE COMPOSER
|
||||
#=================================================
|
||||
ynh_script_progression --message="Installing Composer..." --weight=10
|
||||
|
||||
ynh_install_composer --install_args="--no-dev"
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -43,9 +36,11 @@ chown -R "$app:www-data" "$install_dir"
|
|||
#=================================================
|
||||
# INSTALL AND INITIALIZE COMPOSER
|
||||
#=================================================
|
||||
ynh_script_progression --message="Installing $app..." --weight=30
|
||||
ynh_script_progression --message="Installing $app with Composer..." --weight=30
|
||||
|
||||
pushd "$install_dir/sources"
|
||||
ynh_install_composer --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 run buildall
|
||||
|
||||
|
|
|
@ -27,13 +27,6 @@ ynh_script_progression --message="Upgrading NodeJS..." --weight=1
|
|||
|
||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
#=================================================
|
||||
# INSTALL AND INITIALIZE COMPOSER
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading Composer..." --weight=10
|
||||
|
||||
ynh_install_composer --install_args="--no-dev"
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -50,9 +43,11 @@ chown -R "$app:www-data" "$install_dir"
|
|||
#=================================================
|
||||
# INSTALL AND INITIALIZE COMPOSER
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building $app..." --weight=30
|
||||
ynh_script_progression --message="Building $app with Composer..." --weight=30
|
||||
|
||||
pushd "$install_dir/sources"
|
||||
ynh_install_composer --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 run buildall
|
||||
|
||||
|
|
Loading…
Reference in a new issue