Read Vagrant host port from environment variable.
This commit is contained in:
parent
7c00fb8342
commit
750425b143
|
|
@ -1,6 +1,8 @@
|
|||
port = ENV["HOST_PORT"] || 8080
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
# Ubuntu 14.04 LTS
|
||||
config.vm.box = "ubuntu/trusty64"
|
||||
config.vm.network "forwarded_port", guest: 80, host: 8000
|
||||
config.vm.network "forwarded_port", guest: 80, host: port
|
||||
config.vm.provision "shell", path: "vagrant/provision.sh"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue