Environnement de dev++ #16
2 changed files with 1 additions and 22 deletions
16
README.md
16
README.md
|
@ -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
7
Vagrantfile
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue