Skip to content

Instantly share code, notes, and snippets.

@devton
Last active August 29, 2015 14:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devton/77f4988232756e572c7e to your computer and use it in GitHub Desktop.
Save devton/77f4988232756e572c7e to your computer and use it in GitHub Desktop.
ec2 ubuntu ruby 2.2.1 and small fullstack dependencies
echo "installing depencies..."
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev nodejs rbenv ImageMagick libmagickwand-dev build-essential postgresql postgresql-common libpq-dev imagemagick nginx libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev -y
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
if [ ! -d ~/.rbenv/plugins/ruby-build ]; then git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build; fi
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
rbenv install 2.2.1 -s
rbenv global 2.2.1
eval "$(rbenv init -)"
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment