2019-11-29 09:53:20 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-10-19 10:44:33 +02:00
|
|
|
# Suppression des logs trop ancien
|
|
|
|
find var/logs -mindepth 1 -mtime +7 -delete
|
|
|
|
|
2019-11-29 09:53:20 +01:00
|
|
|
# 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
|