#chiroito ’s blog

Java を中心とした趣味の技術について

GAE+Ruby+Railsプロジェクト作成 on Windows -2.3.11版-

以前、Google App Engine SDK1.4.0とRuby on Rails2.3.8、Ruby1.8.7という環境でプロジェクト作成を行いましが、今回は現時点でGoogle App Engineに適用できる最新版のRuby on Rails 2.3.11を使ってみます。
前回とほとんど変わりがないので今回は細かい説明を省略します。

前回はこちらGAE+Ruby+Rails開発環境構築とプロジェクト作成 on Windows

目的

C:\Users\xxx\gaerailsにGAE用JRuby on Rails2.3.11のプロジェクトを作成する

環境

Windows7 Ultimate SP1
Ruby 1.8.7(C:/Ruby187にインストール済み)

ダウンロード

GAE用JRuby on Rails2.3.11プロジェクト作成スクリプト
rails2311_appengine.rb

C:\Users\xxx\gaerailsにダウンロードしたものとします。
前回同様62行目を修正します。(FileUtils.rm 'public/robots.txt'の部分)
やらないとこんなエラーが出ます。
C:/Ruby187/lib/ruby/1.8/fileutils.rb:1299:in `unlink': No such file or directory - public/robots.txt (Errno::ENOENT)
C:\Users\xxx>gem list

*** LOCAL GEMS ***

C:\Users\xxx>gem install google-appengine --no-rdoc --no-ri
C:\Users\xxx>gem install rails -v 2.3.11 --no-rdoc --no-ri
C:\Users\xxx>gem list

*** LOCAL GEMS ***

actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
appengine-apis (0.0.23)
appengine-rack (0.0.12)
appengine-sdk (1.4.2)
appengine-tools (0.0.17)
bundler08 (0.8.5)
google-appengine (0.0.20)
jruby-jars (1.5.6)
jruby-rack (1.0.6)
rack (1.2.1, 1.1.0)
rails (2.3.11)
rake (0.8.7)
rubyzip (0.9.4)

C:\Users\xxx>cd gaerails
C:\Users\xxx\gaerails>ruby rails2311_appengine.rb
exists
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create db/seeds.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/initializers/cookie_verification_secret.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
+ ./LICENSE
+ ./README
+ ./Rakefile
+ ./init.rb
+ ./lib/active_record/connection_adapters/nulldb_adapter.rb
+ ./lib/nulldb_rspec.rb
+ ./spec/nulldb_spec.rb
+ ./tasks/database.rake
##
## Now type './script/server.sh'
##
後はNetBeansの「既存のソースを使用したRuby on Railsアプリケーション」で指定すると使用できます。