Skip to content

Instantly share code, notes, and snippets.

View imuchene's full-sized avatar

Isaiah Muchene imuchene

View GitHub Profile
1)Enable partner repos, backports repo, restricted repos on the sources list:
sudo vi /etc/apt/sources.list
2) Add the canonical partner repos, then update the sources list:
sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
sudo apt-get update
@imuchene
imuchene / RAILS DEPLOYMENT ON UBUNTU
Last active August 29, 2015 13:57
This is a recipe for deploying a Rails 4 app in Ubuntu (I used 12.04), with Nginx as the web server, Unicorn as the application server and Postgresql as the database server.
# Install vim-nox
sudo apt-get install vim-nox
# Install rbenv
sudo apt-get install git-core build-essential python-software-properties nodejs
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
# Resolve rbenv openssl error
sudo apt-get install openssl libssl-dev ruby1.9.1-dev