Created
September 18, 2010 21:42
-
-
Save woodie/586069 to your computer and use it in GitHub Desktop.
Rails 3.0 on GAE
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
$ 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 |
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
$ cat config/database.yml | |
development: | |
adapter: nulldb | |
production: | |
adapter: nulldb |
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
# 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.