1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zusam_ynh.git synced 2024-09-03 18:05:54 +02:00

Composer finally working. Phew.

This commit is contained in:
dragondaddy 2023-08-10 01:24:49 +02:00
parent d1af0910c3
commit c24d34ee23

View file

@ -48,10 +48,13 @@ cp -R $install_dir/app/dist/* $install_dir/public/
ynh_script_progression --message="Pulling in external libraries with Composer..."
pushd $install_dir/api
export COMPOSER_HOME=$install_dir/api
/usr/bin/php$phpversion bin/composer install
popd
#pushd $install_dir/api
# export COMPOSER_ALLOW_SUPERUSER=1
# export COMPOSER_HOME=$install_dir/api
# sudo -u $app /usr/bin/php$phpversion bin/composer install
#popd
ynh_install_composer -c "2.4.2" -w $install_dir/api/
chown -R $app:www-data "$install_dir"