Read Vagrant host port from environment variable.

This commit is contained in:
PJ Dietz 2015-03-11 15:33:51 -04:00
parent 7c00fb8342
commit 750425b143
1 changed files with 3 additions and 1 deletions

4
Vagrantfile vendored
View File

@ -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