A Symfony project created on November 12, 2015, 8:41 pm.
First, in the gesty directory :
Because there is new changes since the last deployment
git pull origin master
If the directory "OLD_..." prevents the command to run, just add it in the .gitignore file.
All files are already presents, but there were copied by hand.
composer update --no-dev
php app/console doctrine:schema:update --force
php app/console cache:clear --env=prod --no-debug
Ensure the app/uploads is writable for Apache.
Login in admin
In "Parametres > Années scolaires" Click "Ajouter" (top right, link "Liste d'actions"), then enter :
- Date de la rentrée scolaire : 01/09/2016
- Date de fin de l'année scolaire : 07/07/2017
The file to import is in app/Resources/files : Calendrier_Scolaire_Zone_B.ics
Once validated, ensure, the column "Vacances scolaires" in the list contains 4 holidays.
Add another year :
- Date de la rentrée scolaire : 04/09/2017
- Date de fin de l'année scolaire : 06/07/2018
Import the same file as previously (it also contains the holidays for 2017-2018).
In admin,
In "Parametres > Jours fériés"
edit this data by clicking "Editer". Then enter all missing days off if any then click "Mettre à jour et fermer" It is required as other days off are setup due to this action (example : the 11th november is automatically defined thanks to the updating)
It is important because even if other dates for 2016 (e.g. 11th november 2016) are updated automatically, we need to perform the following (event if the dates are passed).
Click on "Liste d'actions > Ajouter"
Enter :
- Année : 2016
- Lundi Pâques : 28/03/2016
- Ascension : 05/06/2016
- Vendredi Ascension : 06/05/2016
- Lundi Pentecôte : 16/05/2016
Click on "Créer et retourner à la liste".
Add another "days off" for 2017 by clicking on "Liste d'actions > Ajouter"
Enter :
- Année : 2017
- Lundi Pâques : 17/04/2017
- Ascension : 25/05/2017
- Vendredi Ascension : 26/05/2017
- Lundi Pentecôte : 05/06/2017
Click on "Créer et retourner à la liste".
Use the command "gesty:db:migratefiles" To know how to use it, enter :
php app/console help gesty:db:migratefiles
#####Example
If old files are in "/Téléchargements/gesty_files/"
and the SQL file is "/Téléchargements/file.sql"
Enter :
php app/console gesty:db:migratefiles ~/Téléchargements/file.sql ~/Téléchargements/gesty_files/ ./web/bundles/wcscantine/uploads ./app/uploads
To be sure emails are sent, simply try a registration. You must receive an email to activate your account.