Created
June 8, 2015 14:46
-
-
Save inferno/56910475e7c2e2c5282e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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