jruby-1.0.0RC1を使ってみる(3)
まず、jrubyのgemでrailsとかもろもろをインストールしておく。
webrick起動!
bird:# jruby script/server ./script/../config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead. => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options
script/generateもいける
bird:# jruby script/generate model memo title:string body:text ./script/../config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead. exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/memo.rb create test/unit/memo_test.rb create test/fixtures/memos.yml create db/migrate create db/migrate/001_create_memos.rb
scaffoldでエラー!
bird:# jruby script/generate scaffold memo memo ./script/../config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead. exists app/controllers/ exists app/helpers/ create app/views/memo exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ identical app/models/memo.rb identical test/unit/memo_test.rb identical test/fixtures/memos.yml java.lang.IllegalArgumentException: Neither current working directory (script/../config/..) nor pathname (db/development.sqlite3) led to an absolute path
scaffoldはrubyでやると・・
激しくエラー!
java.lang.IllegalArgumentException: Neither current working directory (config/..) nor pathname (db/development.sqlite3) led to an absolute path
scaffoldのときと同じエラーのようだ・・
script/consoleは・・
bird:# ~/packages/jruby-1.0.0RC1/bin/jruby script/console /home/bird/packages/jruby-1.0.0RC1/bin/jruby: line 144: exec: java: not found bird:# export PATH=$PATH:/usr/java/jdk1.5.0_11/bin bird:# ~/packages/jruby-1.0.0RC1/bin/jruby script/console ./script/../config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead. Loading development environment. ./script/../config/../config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead. >> Memo.find(:all) NativeException: java.lang.IllegalArgumentException: Neither current working directory (script/../config/../config/..) nor pathname (db/development.sqlite3) led to an absolute path
似たようなエラー・・