28 lines
623 B
Bash
28 lines
623 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Installation des dépendances composer
|
||
|
composer install
|
||
|
|
||
|
# Permissions
|
||
|
./perm.sh www-data
|
||
|
|
||
|
# Nettoyage du cache
|
||
|
rm /var/www/html/ninestat/var/cache/* -rf
|
||
|
php bin/console cache:clear --env=prod --no-debug
|
||
|
|
||
|
# Migration si nécessaire du schéma de la base
|
||
|
php bin/console doctrine:schema:update --force --env=prod --no-debug
|
||
|
|
||
|
# Insertion data de base
|
||
|
php bin/console Core:InitData
|
||
|
php bin/console Cron:InitData
|
||
|
|
||
|
# Generation des assets
|
||
|
bin/console --env=dev assetic:dump
|
||
|
|
||
|
# Copie des polices du projet dans le rep web
|
||
|
cp -rf src/Cadoles/CoreBundle/Resources/public/fonts web/
|
||
|
|
||
|
# Permissions
|
||
|
./perm.sh www-data
|