Skip to content

Instantly share code, notes, and snippets.

@mdespuits mdespuits/
Last active Dec 25, 2015

What would you like to do?
Rails setup for Rails production server using Nginx, Git, Postgresql, and the speedy Recap capistrano gem.
sudo apt-get -y update
sudo add-apt-repository ppa:nginx/stable
sudo apt-get -y update
sudo apt-get install -y git-core postgresql-9.1 mysql-server libpq-dev \
curl build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
if [ ! -e /usr/local/bin/gem ]; then
echo "Downloading Ruby..."
wget -q
tar xvfz ruby-2.0.0-p247.tar.gz
cd ruby-2.0.0-p247/
echo "Installing Ruby..."
./configure --prefix=/usr/local
make install
echo "Updating all the things..."
sudo gem update --system
sudo gem install bundler --no-ri --no-rdoc
cd /tmp
rm -rf ruby-2.0.0-p247/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.