Created
June 3, 2012 23:55
-
-
Save sbeckeriv/2865478 to your computer and use it in GitHub Desktop.
rails 3 ruby 1.9 setup ec2
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
http://tanin.nanakorn.com/b/92/amazon_ec2_setup_for_ruby_on_rails | |
sudo yum erase -y ruby rubygems | |
sudo yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel sqlite-devel sqlite curl-devel git ruby19-devel | |
sudo ln -s /usr/bin/ruby1.9 /usr/bin/ruby | |
sudo ln -s /usr/bin/gem1.9 /usr/bin/gem | |
sudo yum install -y aws-amitools-ec2 | |
sudo gem install passenger | |
sudo gem install rails -v 3.1.5 --no-ri --no-rdoc | |
rails new base | |
cd base | |
vi Gemfile | |
----- | |
gem 'therubyracer' | |
gem "sqlite3-ruby", :require => "sqlite3" | |
----- | |
bundle install | |
rails -s | |
/usr/local/share/gems/gems/railties-3.2.1/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `active_record' for #<Rails::Application::Configuration:0x87dc334> (NoMethodError) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment