Last active
August 29, 2015 14:20
-
-
Save drumsetz/c8652782626325c43fd5 to your computer and use it in GitHub Desktop.
Ruby on Rails with postgresql clean install on Ubuntu (using rvm)
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
#! /bin/bash | |
# Get the latest Git from the PPA | |
sudo add-apt-repository ppa:git-core/ppa | |
sudo apt-get update | |
sudo apt-get install git | |
sudo apt-get install postgresql | |
# Fixes pg_config error when installing pg gem | |
sudo apt-get install libpq-dev | |
# Get RVM for Ruby management (Ruby version 2.1.0) | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
\curl -sSL https://get.rvm.io | bash -s stable --rails --ruby=2.1.0 | |
/bin/bash --login | |
rvm use 2.1.0 | |
# At this point, an SSH key should be created for GitHub | |
#ssh-keygen -t rsa -C "$YOUREMAIL" | |
# To use the agent for not having to enter the key every SSH access | |
#eval "$(ssh-agent -s)" | |
#ssh-add ~/.ssh/id_rsa | |
# Will need to get some javascript runtime for execjs: | |
# https://github.com/sstephenson/execjs | |
# therubyracer (gem install therubyracer) | |
# Node.js (1. get source 2. ./configure 3. make 4. sudo make install) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment