Skip to content

Instantly share code, notes, and snippets.

@spacecowb0y
Last active January 19, 2017 00:09
Show Gist options
  • Save spacecowb0y/6091743 to your computer and use it in GitHub Desktop.
Save spacecowb0y/6091743 to your computer and use it in GitHub Desktop.
Vagrant config to setup a rvm + ruby + rails + passenger + nginx + mysql.
sudo apt-get curl libcurl4-openssl-dev mysql-server libmysqlclient-dev libmysqlclient18 ruby-dev nodejs
\curl -L https://get.rvm.io | bash -s stable --rails
gem install passenger
gem install execjs
rvmsudo passenger-install-nginx-module --auto --auto-download
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.network :forwarded_port, guest: 3000, host: 3000
config.vm.hostname = "ruby-dev-server"
config.vm.provision :shell, path: "install.sh"
config.vm.network :private_network, ip: "192.168.33.10"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment