Created
June 6, 2012 20:00
-
-
Save conanr/2884365 to your computer and use it in GitHub Desktop.
Vagrant set up using Nginx, Mysql, & God
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
vagrant box add precise32 http://files.vagrantup.com/precise32.box | |
vagrant init precise32 | |
# update Vagrantfile to port forward: ln 32 => "config.vm.forward_port 80, 8080" | |
vagrant up | |
vagrant ssh |
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
# in 'vagrant ssh' terminal ... | |
sudo apt-get update | |
sudo apt-get install curl git-core build-essential libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev python-software-properties | |
# install ruby 1.9.3 using RVM | |
bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc | |
source /home/vagrant/.rvm/scripts/rvm | |
rvm install 1.9.3 | |
rvm use 1.9.3 | |
# install nginx | |
sudo add-apt-repository ppa:nginx/stable | |
sudo apt-get update | |
sudo apt-get install nginx | |
# install "sudo apt-get install libsqlite3-dev sqlite3" if you aren't on MySQL yet | |
# cap setup for your app using "cap vagrant deploy:setup" | |
# deploy your app using "cap vagrant deploy" | |
# configure nginx | |
# install & configure mysql | |
# install & configure god |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment