Commit 9bd13738 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Script d'install lancé par le hook git lors du déploiement

parent d1513ead
#!/usr/bin/env bash
# This script runs required operations in order to set up the application.
# Composer install
composer install --no-dev --no-suggest --optimize-autoloader
# Répertoires de travail de Doctrine
mkdir -p data/cache && chmod -R 777 data/cache
mkdir -p data/DoctrineModule/cache && chmod -R 777 data/DoctrineModule/cache
mkdir -p data/DoctrineORMModule/Proxy && chmod -R 777 data/DoctrineORMModule/Proxy
rm -rf data/cache/*
rm -rf data/DoctrineModule/cache/*
rm -rf data/DoctrineORMModule/Proxy/*
# Commandes Doctrine
vendor/bin/doctrine-module orm:clear-cache:query
vendor/bin/doctrine-module orm:clear-cache:metadata
vendor/bin/doctrine-module orm:clear-cache:result
vendor/bin/doctrine-module orm:generate-proxies
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment