Skip to content

Instantly share code, notes, and snippets.

@stephenheard
Last active August 29, 2015 14:01
Show Gist options
  • Save stephenheard/67ebb17c585849016b63 to your computer and use it in GitHub Desktop.
Save stephenheard/67ebb17c585849016b63 to your computer and use it in GitHub Desktop.
Commands to setup Ruby on Rails on Amazon EC2 with Amazon Linux
sudo yum update
sudo yum groupinstall "Development Tools"
sudo yum install git pcre pcre-devel gcc make zlib zlib-devel openssl openssl-devel sqlite-devel
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git
<< restart terminal >>
rbenv install 2.1.2
rbenv global 2.1.2
rbenv rehash
gem update --system
echo "gem: --no-document\n" >> ~/.gemrc
gem install rails
git clone git://github.com/joyent/node.git
cd node
./configure
make
sudo make install
node -v // just to make sure it works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment