Commit graph

63 commits

Author SHA1 Message Date
Tom Hubrecht 65ea5d21b2 Update django-redis-cache and fix vagrant setup 2022-10-03 10:55:33 +02:00
Tom Hubrecht 965ba074b6 Fix vagrant setup w/ daphne 2022-10-03 10:55:33 +02:00
Martin Pépin 726b3f55a0
Rename the cof/ folder to gestioasso/
This is a much more sensible name since it contains configuration
applicable to both GestioCOF and GestioBDS.

The next logical step would be to rename the `gestioncof/` folder to
`cof/`.
2021-02-07 17:17:15 +01:00
Martin Pépin 0ce1e62586
Fichier bootstrap.sh mieux commenté 2020-12-07 20:09:25 +01:00
Martin Pépin 783fe1de32
Liste des paquets dans un fichier séparé 2020-12-07 20:09:24 +01:00
Martin Pépin 7f58b5fa00
Vagrant: toutes les units systemd sont là 2020-12-04 16:58:25 +01:00
Martin Pépin df222f18a3
Update the vagrant config → should work now 2020-12-04 16:10:27 +01:00
Ludovic Stephan 82d58d23c9 Remove all traces of custommail 2020-09-15 11:49:32 +02:00
Evarin 4f6579c3d1 Fixtures à jour pour Wagtail2 et wagtail-translation 0.9 2019-02-11 21:10:11 +01:00
Evarin 0f1e05acdd Migration vers Wagtail 2.3 et Wagtail-modeltranslation 0.9
Toutes les pages Wagtail doivent désormais être traduites
Suppression du modèle COFUtilPage devenu inutile
Réinitialisation des migrations de Wagtail à cause des changements de ModelTranslation
2019-02-04 22:56:48 +01:00
Martin Pépin babb458aa4 fix syncmail invocation in prepare_django.sh 2019-01-07 22:10:58 +01:00
Basile Clement ac1a57d969 Make provisioning script stop immediately on errors
By default, bash will ignore any failing commands and happily proceed to
execute the next ones. This is usually not the behavior the we want in
provisioning script (or ever in scripts, actually): if one step of the
provisioning fails, it doesn't make much sense to proceed with the
following ones.

This simple patch uses `set -e` to ask bash to abort the whole script if
any command within it fails, leading to outputs that are easier to parse
since the commands following a failing one will usually fail also,
hiding the root cause.
2018-02-11 17:01:26 +01:00
Martin Pépin 2a519bfedf Add SCRIPT_NAME to the production-like server 2017-08-13 14:36:45 +01:00
Martin Pépin 4d026407d1 Quicker setup for local development 2017-08-11 23:56:02 +01:00
Martin Pépin dae418af3d Handle websockets in nginx.conf 2017-08-10 16:56:03 +01:00
Martin Pépin 73296ea251 Setup django before launching daphne + Django 2017-08-10 16:55:36 +01:00
Martin Pépin bd1dace8e8 Fix symlink for secret.py 2017-08-10 16:31:09 +01:00
Martin Pépin ad15c45237 Switch to nginx + postgres in vagrant 2017-08-09 22:18:26 +01:00
Martin Pépin 062f547315 Use the right python interpreter in the cron tasks 2017-08-08 00:19:47 +01:00
Martin Pépin 784513b3cc Use utf8 encoding for the mysql database 2017-08-08 00:12:09 +01:00
Martin Pépin 3762b38afe Remove useless pip upgrade in bootstrap.sh 2017-05-22 10:29:38 +01:00
Martin Pépin 17b140fb12 Upgrade apt packages while provisioning 2017-05-21 18:42:30 +01:00
Martin Pépin fb4258f821 Set the redis passwd properly in bootstrap.sh 2017-04-25 20:23:51 +01:00
Martin Pépin 52d9979d7c Fix settings in the provisioning script 2017-04-24 22:17:41 +01:00
Martin Pépin 2aee43e01a Add more configuration options for redis
- `REDIS_HOST` can be specified in the secrets
- Two new secrets: `REDIS_PASSWD` and `REDIS_DB`
2017-04-24 22:17:41 +01:00
Martin Pépin 40abe81402 Integrate the new settings workflow into vagrant 2017-04-10 23:01:19 +01:00
Martin Pépin f5b23174de Fix test_database issue in bootstrap
The test database shouldn't be created manually
2017-02-12 17:39:30 +01:00
Martin Pépin 313b5cf61d Merge branch 'master' into Aufinal/dev_data_kfet 2017-02-11 21:01:37 +01:00
Martin Pépin 6e55905781 Merge branch 'master' into Kerl/use_django_custommail 2017-02-11 03:20:29 +01:00
Ludovic Stephan 4e62eb0aee create checkout dynamically 2017-02-08 15:26:56 -02:00
Ludovic Stephan 1062fd480f update provisioning 2017-02-08 15:11:48 -02:00
Martin Pépin 18b186929c Dev data loaded using a django admin command
- Sites, surveys, events and petits cours demands/subjects are still
  loaded from fixtures
- The users and their subscriptions to petits cours are loaded using the
  `loaddevdata` command
- The sub command `loadbdadevdata` is called by `loaddevdata` and
  populates the database with BdA related stuff :
  - 2 tirages
  - Show places
  - Shows
  - subscriptions
2017-02-03 14:33:10 +01:00
Martin Pépin 993b8ae87b Merge branch 'master' into Kerl/use_django_custommail 2017-01-13 01:02:01 +01:00
Martin Pépin 672b8727b7 Merge branch 'michele.orru/gestioCOF-master'
Deleting a CofProfile => Deleting the associated User
2017-01-06 17:00:06 +01:00
Martin Pépin 8568ecedba Update provisioning
Django has now access to the test datebase
2017-01-06 16:58:27 +01:00
Martin Pépin cd3faa098b Merge branch 'master' into Kerl/use_django_custommail 2017-01-06 16:45:36 +01:00
Aurélien Delobelle d6542d8b21 Fix websocket for dev and www
Le ProxyPass ignorait apparemment le header `Daphne-Root-Path`
2017-01-05 15:52:25 +01:00
Martin Pépin 9482ab4416 Update provisioning
Il faut lancer `syncmails` au setup de GestioCOF
2016-12-23 18:58:48 +01:00
Martin Pépin 4249524842 Typo vagrant -> ubuntu 2016-11-21 01:26:56 +01:00
Martin Pépin 6de2fa307b Merge branch 'master' into Kerl/venv 2016-11-18 01:09:39 +01:00
Martin Pépin 107079ce1f Fix pip version 2016-11-14 06:39:55 +01:00
Basile Clement d77a4dde3e GestioCOF devrait fonctionner sur / aussi bien que sur /gestion 2016-11-06 19:47:31 +01:00
Martin Pépin f2ceb88264 typo 2016-11-06 19:28:47 +01:00
Martin Pépin d1c6c2151a Ubuntu 16
On passe à ubuntu 16 ce qui permet d'utiliser python3.5 et le paquet
python3-venv.
Fichier `provisioning/prepare_django.sh` plus propre
2016-11-06 19:09:03 +01:00
Martin Pépin 41b54cec9e Utilisation d'un virtualenv 2016-11-06 15:39:50 +01:00
Ludovic Stephan 7984eb132b Merge branch 'master' of https://git.eleves.ens.fr/cof-geek/gestioCOF into Aufinal/bda_revente 2016-09-26 15:56:35 +02:00
Ludovic Stephan 15e755334d cron 2016-09-26 15:31:09 +02:00
Martin Pépin 14733c07a0 Petits changements
Clarification du README
Utilisation de sed pour construire les fichiers de config
2016-09-12 19:33:39 +02:00
Martin Pépin 7e48210a51 Correction de port
Le port 8000 est réservé au serveur de dev
2016-09-12 17:04:50 +02:00
Martin Pépin f37bdd90b7 Crée un setup proche de celui en production
On fait tourner GestioCOF avec daphne derrière un reverse-proxy Apache
sur la VM Vagrant tout comme sur le serveur de production. On peut tester
en local GestioCOF en “conditions réelles”.

Le serveur lancé avec `python manage.py runserver 0.0.0.0:8000` est toujours
accessible à la même url `localhost:8000`.

Le (nouveau) serveur apache est accessible à `localhost:8080`.

Pour appliquer les changements dans le code au serveur type prod, il faut
relancer le worker : `sudo supervisorctl restart worker`. Alors que le serveur
de dev se relance tout seul.

NB important : ce patch supprime le mot de passe sur le serveur redis en dev,
pour faire marcher ce nouveau setup avec un version précédente de la VM, il faut
lancer `sudo redis-cli config set requirepass ""`
2016-09-12 16:49:37 +02:00