Last active
January 19, 2017 00:09
-
-
Save spacecowb0y/6091743 to your computer and use it in GitHub Desktop.
Vagrant config to setup a rvm + ruby + rails + passenger + nginx + mysql.
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
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 |
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 = "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