Created
December 17, 2011 15:55
-
-
Save czerasz/1490567 to your computer and use it in GitHub Desktop.
Ruby on Rails Project
This file contains 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
#to use rails you need to compile rvm with ssl and readline | |
#http://dev.mensfeld.pl/2011/06/rvm-i-no-such-file-to-load-openssl/ | |
#https://rvm.beginrescueend.com/packages/openssl/ | |
#sudo apt-get install openssl libssl-dev libreadline6-dev | |
rvm pkg install openssl | |
rvm pkg install readline | |
rvm remove 1.9.2 | |
rvm cleanup all | |
rvm install 1.9.2 --with-openssl-dir=$rvm_path/usr, --with-readline-dir=$rvm_path/usr | |
#to use MySQL with ruby | |
sudo apt-get install libmysql-ruby libmysqlclient-dev | |
#enable execjs | |
#Add this to your Gemfile, http://stackoverflow.com/questions/7376021/rails-rake-does-not-work | |
gem 'therubyracer', require: "v8" | |
#and run | |
bundle install | |
#create rails project with MySQL | |
rails new projectName -d mysql | |
#then edit config/database.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment