Skip to content

Instantly share code, notes, and snippets.

@rorlab
Last active October 26, 2016 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rorlab/ef662fce2460c08eefe1 to your computer and use it in GitHub Desktop.
Save rorlab/ef662fce2460c08eefe1 to your computer and use it in GitHub Desktop.
Vagrantfile for Developing Rails Applications
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.network "forwarded_port", guest: 3000, host: 9000, auto_correct: true
config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
# config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provider "virtualbox" do | vb |
# vb.name = "RORLAB DEV Vagrant"
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.provision :shell, privileged: false, path: 'https://gist.githubusercontent.com/rorlab/9e52461a78592d00e6ca/raw/45ca51ba0a11c512895b5677a1b3be96111ffcf9/setup.sh'
end
@rorlab
Copy link
Author

rorlab commented Oct 26, 2016

I've just updated the box and provision path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment