forked from e-valuation/EvaP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
28 lines (22 loc) · 942 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.8.1"
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.box_version = "= 20190112.0.0 "
# port forwarding
config.vm.network :forwarded_port, guest: 8000, host: 8000 # django server
config.vm.network :forwarded_port, guest: 80, host: 8001 # apache
config.vm.network :forwarded_port, guest: 6379, host: 6379 # redis. helpful when developing on windows, for which redis is not available
config.vm.provider :virtualbox do |v, override|
# disable logfile
if Vagrant::Util::Platform.windows?
v.customize [ "modifyvm", :id, "--uartmode1", "file", "nul" ]
else
v.customize [ "modifyvm", :id, "--uartmode1", "file", "/dev/null" ]
end
# show virtualbox gui, uncomment this to debug startup problems
#v.gui = true
end
config.vm.provision "shell", path: "deployment/provision_vagrant_vm.sh"
end