Environnement de dev++ #16

Merged
mpepin merged 11 commits from Kerl/dev_env into master 2017-05-18 18:45:40 +02:00
2 changed files with 1 additions and 22 deletions
Showing only changes of commit a43b7ba914 - Show all commits

View file

@ -23,19 +23,3 @@ Our Vagrant setup provides two ways of running GestionEvenementiel:
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:
- https://wiki.debian.org/Teams/Cloud/VagrantBaseBoxes#Shared_folders
- https://www.vagrantup.com/docs/synced-folders/rsync.html

7
Vagrantfile vendored
View file

@ -10,18 +10,13 @@ Vagrant.configure(2) do |config|
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
config.vm.box = "debian/stretch64"
config.vm.box = "debian/contrib-jessie64"
# On associe le port 80 dans la machine virtuelle avec le port 8080 de notre
# ordinateur, et le port 8000 avec le port 8000.
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :forwarded_port, guest: 8000, host: 8000
# Override the synced folder configuration to prevent the secret file from
# being removed.
config.vm.synced_folder ".", "/vagrant",
rsync__exclude: [".git/", ".vagrant/", "evenementiel/settings/secret.py"]
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"