Skip to content

Instantly share code, notes, and snippets.

@woodie
Created September 18, 2010 21:42
Show Gist options
  • Save woodie/586069 to your computer and use it in GitHub Desktop.
Save woodie/586069 to your computer and use it in GitHub Desktop.
Rails 3.0 on GAE
$ jruby -S gem install rails --no-ri --no-rdoc
$ jruby -S gem install activerecord-jdbc-adapter jdbc-mysql
$ jruby -S rails new rails3 --database mysql rouge
# edit Gemfile and database.yml
$ jruby -S bundle package
$ jruby -S rails server
$ cat config/database.yml
development:
adapter: nulldb
production:
adapter: nulldb
# Gemfile for Rails 3.0
source 'http://rubygems.org'
gem 'rails', '3.0.0'
gem 'activerecord-nulldb-adapter' # for now
gem 'jruby-openssl' # for cookie sessions
gem 'appengine-rack' # jruby-jars & jruby-rack
# To use debugger
# gem 'ruby-debug'
@saifalharthi
Copy link

hi , how can i deploy it to GAE , & should i conigure app,yaml & config.ru?

@millar
Copy link

millar commented Oct 30, 2010

Yeah, I'm not sure but this seems a little incomplete.

Would appreciate a hand as I've tried a few times myself to get Rails 3 running using modifications (there were lots) to the Rails 2 on GAE gist you have. I got there but I was finding the app slower with every page load since deployment so I was going wrong somewhere.

However your method looks much more appealing if it uses ActiveRecord instead of DataMapper (I used ActiveRecord on my Rails applications before coming to the world of GAE).

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment