Skip to content

Instantly share code, notes, and snippets.

@hyeomans
Last active December 17, 2015 02:19
Show Gist options
  • Save hyeomans/5534359 to your computer and use it in GitHub Desktop.
Save hyeomans/5534359 to your computer and use it in GitHub Desktop.
Deploying Rails app to Vagrant on Ubuntu 12.04

Warming up

gem install vagrant

vagrant box add precise64 http://dl.dropbox.com/u/1537815/precise64.box
vagrant up && vagrant ssh

sudo apt-get -y update && sudo apt-get -y install curl git-core python-software-properties

Custom Apt-Get repo

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv REPLACE_KEY

Nginx

sudo add-apt-repository ppa:nginx/stable && sudo apt-get -y update && sudo apt-get -y install nginx

sudo rm /etc/nginx/sites-enabled/default

sudo service nginx start

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