gestion composer 1 & 2

This commit is contained in:
2023-08-31 15:43:48 +02:00
parent a2899ee93b
commit 386d639151
4 changed files with 34 additions and 18 deletions

View File

@@ -6,12 +6,13 @@ cd /var/www/html/schedule
. scripts/proxy.sh
# Mise en place du fichier d'environnement model
if [ ! -f /var/www/html/schedule/.env ]; then
mv /var/www/html/schedule/scripts/.env.model /var/www/html/schedule/.env
fi
yes 2>/dev/null | cp $DIR/scripts/.env.model $DIR/.env
# Installation des dépendances composer
composer install
echo COMPOSER = Install
export COMPOSER_ALLOW_SUPERUSER=1
composer self-update --1 --quiet
composer install --quiet
php bin/console app:AppInit --env=prod
php bin/console app:CronInit --env=prod