Commit 19bfa418 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

install.sh comme celui de sygal

parent 221d0835
Loading
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
#!/usr/bin/env bash

#
# This script runs required operations in order to set up the application.
# Script d'installation des pré-requis de l'application.
#
# Usages :
#   ./install.sh

set -o errexit

CURDIR=$(cd `dirname $0` && pwd)

cd ${CURDIR}

# Composer install
@@ -15,4 +20,8 @@ vendor/bin/doctrine-module orm:clear-cache:metadata
vendor/bin/doctrine-module orm:clear-cache:result
vendor/bin/doctrine-module orm:generate-proxies

composer development-disable
vendor/bin/laminas-development-mode disable

# Création ou vidange des répertoires de cache
mkdir -p data/cache && chmod -R 777 data/cache && rm -rf data/cache/*
mkdir -p data/DoctrineModule/cache && chmod -R 777 data/DoctrineModule/cache && rm -rf data/DoctrineModule/cache/*