Skip to content

Instantly share code, notes, and snippets.

@czerasz
Created December 17, 2011 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czerasz/1490567 to your computer and use it in GitHub Desktop.
Save czerasz/1490567 to your computer and use it in GitHub Desktop.
Ruby on Rails Project
#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