Étapes de déploiement Statamic pour Infomaniak
· 1 min
En bref
- Le script de déploiement utilisé pour un site Statamic hébergé chez Infomaniak.
- Il passe le site en maintenance, fait un git pull et un composer install sans dépendances de développement.
- Il met en cache la config et les routes, réchauffe le Stache, met à jour la recherche et le cache statique, puis remet le site en ligne.
php artisan down
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev
php artisan cache:clear
php artisan config:cache
php artisan route:cache
php artisan statamic:stache:warm
php artisan queue:restart
php artisan statamic:search:update --all
php artisan statamic:static:clear
php artisan up
php artisan statamic:static:warm --queue