[英]typing bin/jruby -S rails myapp I get the output telling me how to use the rails command?
I insalled jruby, and when I type: 我安装了jruby,然后键入:
> bin/jruby -S rails myapp
I get:
bin/jruby -S rails myapp -d mysql
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /Users/snad/dev/jruby/jruby-1.5.2/bin/jruby
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db)
..
..
..
It seems to be conflicing with my rails (3.0) installation? 它似乎与我的rails(3.0)安装冲突?
Type jruby -S rails --version
. 输入
jruby -S rails --version
。 I bet you have Rails 3.0.0 installed as jruby gem. 我敢打赌,您已将Rails 3.0.0安装为jruby gem。 So you should either use
jruby -S rails new myapp
to create an app or rollback to rails 2.3.8 if you need it for some specific reason. 因此,您应该使用
jruby -S rails new myapp
创建应用程序,或者如果出于某些特定原因需要回滚到rails 2.3.8。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.