Skip to content
Extraits de code Groupes Projets

Resolve "Configurer le fichier Vagrant pour les test en local"

Fusionnées nono requested to merge 124-configurer-le-fichier-vagrant-pour-les-test-en-local into preprod
1 fil de conversation non résolu
1 fichier
+ 11
2
Comparer les modifications
  • Côte à côte
  • En ligne
+ 11
2
@@ -14,6 +14,8 @@ Vagrant.configure("2") do |config|
# boxes at https://vagrantcloud.com/search.
config.vm.box = "debian/bullseye64"
config.vm.define "don-debian64"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
@@ -23,7 +25,8 @@ Vagrant.configure("2") do |config|
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
config.vm.network "forwarded_port", guest: 80, host: 8383
# config.vm.network "forwarded_port", guest: 80, host: 3141
config.vm.network "forwarded_port", guest: 8000, host: 3141
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
@@ -43,7 +46,13 @@ Vagrant.configure("2") do |config|
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder "./", "/home/don/don"
# Si vous voulez avoir la possibilité de faire des modifications directement
# dans le dossier local, et voir les modifications sans avoir besoin de faire
# `vagrant provision`, vous pouvez décommenter la ligne ci-dessous avant de
# faire `vagrant up && vagrant provision`.
# config.vm.synced_folder "./", "/home/don/don"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbook.yml"
Chargement en cours