Created
July 4, 2016 15:03
-
-
Save DannyBen/836a952f97ab9fe2c90de8fa26471fff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
forward_port = ->(guest, host = guest) do | |
config.vm.network :forwarded_port, | |
guest: guest, | |
host: host, | |
auto_correct: true | |
end | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.name = "Xenial64 Box" | |
vb.memory = "2048" | |
end | |
forward_port[80] | |
forward_port[3000] | |
config.vm.synced_folder "./", "/vagrant" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment