25 lines
507 B
Bash
25 lines
507 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Se positionner sur la racine du projet
|
||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||
|
cd ${DIR}
|
||
|
cd ..
|
||
|
DIR=$(pwd)
|
||
|
|
||
|
# Déclaration d'un proxy
|
||
|
. $DIR/scripts/proxy.sh
|
||
|
|
||
|
# Mise en place du fichier d'environnement model
|
||
|
if [ ! -f $DIR/.env ]; then
|
||
|
mv $DIR/scripts/.env.model $DIR/.env
|
||
|
fi
|
||
|
|
||
|
# Installation des dépendances composer
|
||
|
composer install
|
||
|
|
||
|
php bin/console app:AppInit --env=prod
|
||
|
php bin/console app:CronInit --env=prod
|
||
|
|
||
|
# Permissions
|
||
|
./scripts/perm.sh www-data
|