Last active
June 4, 2016 18:49
-
-
Save ishouvik/c120699e1a8e34a6d349ee5d5915bafd to your computer and use it in GitHub Desktop.
Vagrant file for rbenv rails
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 = "<box name>" | |
# Create port fowarding between guest and host | |
config.vm.network "forwarded_port", guest: 3000, host: 3000 | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
# Create a private network, which allows host-only access to the machine | |
config.vm.network "private_network", ip: "<ip address>" | |
# Create additional synced directories | |
config.vm.synced_folder "./", "/home/vagrant/apps/current/store" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "512" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment