Application de gestion de l'organisation d'évènements et de l'inventaire du matériel
Find a file
2017-05-17 02:07:06 +01:00
equipment initial migrations 2017-02-21 21:16:50 +01:00
evenementiel Remove irrelevant environment variables 2017-05-16 21:43:30 +01:00
event Merge branch 'qwann/html/base2' into qwann/html/user 2017-03-05 13:26:44 +01:00
provisioning Avoid duplicate lines in .bash{rc,_profile} 2017-05-16 22:00:00 +01:00
shared Merge branch 'qwann/html/user' into qwann/views/shared 2017-03-05 19:13:24 +01:00
user PEP8 2017-04-26 20:36:22 +01:00
.gitignore adding user model 2017-02-18 01:45:22 +01:00
manage.py installation vagrant 2016-09-28 20:36:48 +02:00
README.md Some docs about the dev environment in README.md 2017-05-17 02:07:06 +01:00
requirements-devel.txt Split the settings in two files, secrets system 2017-05-16 19:52:59 +01:00
requirements.txt Setup a production-like environment in vagrant 2017-05-16 16:13:31 +01:00
Vagrantfile Use the Debian Stretch box in Vagrant 2017-05-16 11:53:47 +01:00

Gestion Événementiel

Vagrant

Production-like environment

Our Vagrant setup provides two ways of running GestionEvenementiel:

  1. You can run the usual development server with:

    python manage.py runserver 0.0.0.0:8000

    Please note that we specify the interface 0.0.0.0 to make the server reachable outside the VM at address localhost:8000

  2. A second instance, more similar to the production environment, runs with Daphne and nginx in the VM. It runs permanently by default but is not reloaded when you update the code. To restart this server, type:

    python manage.py collectstatic --noinput sudo systemctl restart daphne.service worker.service

    To query this instance from the host, you have to use the address localhost:8080. It is a good practice to ensure that this instance works before submitting a merge request (although it might break sometimes).

About synced folders

Due to a limitation related to the Debian boxes, VirtualBox synced folders cannot be enabled. Vagrant uses rsync instead to upload the current folder into the VM at /vagrant. But this only occurs once each time you run vagrant up or vagrant reload. However you can ask Vagrant to automatically resync when changes occur in the host with the vagrant rsync-auto command. Please note that this is a one-way synchronization.

For more information: