Created
February 20, 2018 19:56
-
-
Save jeanfbrito/50f9be3f00527f10347e78268614e6cb to your computer and use it in GitHub Desktop.
Vagrantfile
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| | |
config.vm.box = 'jadesystems/rails-5-1' | |
config.vm.provider "virtualbox" do |v| | |
v.memory = 4096 | |
v.cpus = 4 | |
end | |
# Create a forwarded port mapping which allows access to a specific port | |
# This one is for running Rails (puma, mongrel) | |
# Note that when you run `rails server`, you need to specify that it | |
# bind to host 0.0.0.0, not localhost, or the port forwarding won't work. | |
# `rails s -b 0.0.0.0` | |
config.vm.network 'forwarded_port', guest: 3000, host: 3000, auto_correct: true | |
# This one is for Jekyll | |
# Note that when you run `jekyll serve`, you need to specify that it | |
# use host 0.0.0.0, not localhost, or the port forwarding won't work. | |
# `jekyll serve -H 0.0.0.0 --force_polling` | |
config.vm.network 'forwarded_port', guest: 4000, host: 4000, auto_correct: true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment