Last active
August 25, 2020 10:03
-
-
Save Nosfheratu/5cfe91e5feaea2b8634e to your computer and use it in GitHub Desktop.
simple environment setup for ruby/rails development
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
sudo apt-get update | |
sudo apt-get install curl git-core software-properties-common | |
sudo apt-get install build-essential | |
sudo apt-get install imagemagick libmagickwand-dev | |
# PostgreSQL | |
sudo apt-get install postgresql-9.3 libpq-dev | |
# SQLite3 | |
sudo apt-get install sqlite3 libsqlite3-dev | |
# Node.js | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
# Ruby with rbenv | |
curl -L https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash | |
vim .bashrc # add rbenv to the top | |
. .bashrc | |
rbenv bootstrap-ubuntu-12-04 | |
rbenv install 2.0.0-pXXX | |
rbenv global 2.0.0-pXXX | |
gem install bundler --no-ri --no-rdoc | |
gem install rails --no-ri --no-rdoc | |
rbenv rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment