Skip to content

Instantly share code, notes, and snippets.

@pjdietz
Created March 11, 2015 15:17
Show Gist options
  • Save pjdietz/d15b98be7cc05012aa4c to your computer and use it in GitHub Desktop.
Save pjdietz/d15b98be7cc05012aa4c to your computer and use it in GitHub Desktop.
Vagrantfile with port specifiable by environment variable
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: port
config.vm.provision "shell", path: "vagrant/provision.sh"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment