Skip to content

Instantly share code, notes, and snippets.

@inferno
Created June 8, 2015 14:46
Show Gist options
  • Select an option

  • Save inferno/56910475e7c2e2c5282e to your computer and use it in GitHub Desktop.

Select an option

Save inferno/56910475e7c2e2c5282e to your computer and use it in GitHub Desktop.
apt-get -y update
apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties nodejs nginx-full redis-server postgresql postgresql-server-dev-9.4 mc wget imagemagick
adduser app
sudo su - app
ssh-keygen -t rsa -b 4096
ssh -T [email protected]
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source .bash_profile
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.2.2
rbenv global 2.2.2
gem install bundler
exit
sudo su - postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment