$rails server
我得到这个返回for和rails命令输入:
Usage: rails new APP_PATH [options]Options: [--edge] # Setup the application with Gemfile pointing to Rails repository [--dev] # Setup the application with Gemfile pointing to your Rails checkout -G,[--skip-git] # Skip Git ignores and keeps -m,[--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) -b,[--builder=BUILDER] # Path to a application builder (can be a filesystem path or URL) [--old-style-hash] # Force using old style hash (:foo => 'bar') on Ruby >= 1.9 [--skip-gemfile] # Don't create a Gemfile -d,[--database=DATABASE] # Preconfigure for selected database (options: MysqL/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcMysqL/jdbcsqlite3/jdbcpostgresql/jdbc) # Default: sqlite3 -O,[--skip-active-record] # Skip Active Record files [--skip-bundle] # Don't run bundle install -T,[--skip-test-unit] # Skip Test::Unit files -S,[--skip-sprockets] # Skip Sprockets files -j,[--JavaScript=JavaScript] # Preconfigure for selected JavaScript library # Default: jquery -J,[--skip-JavaScript] # Skip JavaScript files -r,[--ruby=PATH] # Path to the Ruby binary of your choice # Default: /usr/bin/ruby1.8Runtime options: -s,[--skip] # Skip files that already exist -f,[--force] # Overwrite files that already exist -p,[--pretend] # Run but do not make any changes -q,[--quIEt] # Supress status outputRails options: -h,[--help] # Show this help message and quit -v,[--version] # Show Rails version number and quitDescription: The 'rails new' command creates a new Rails application with a default directory structure and configuration at the path you specify.Example:rails new ~/Code/Ruby/weblogThis generates a skeletal Rails installation in ~/Code/Ruby/weblog.See the README in the newly created application to get going.
为什么不启动服务器?对我来说,这似乎是一个rails helpDoc或其他一些.
类似的情况也发生在:
$rails generate
有什么办法可以让这些命令正确启动……
我在Ubuntu上使用Rails 3.1.3版.
顺便说一句:我是从myapp目录中输入的,即
chuckles@.......:~/Blog/new$
我确实通过运行来启动服务器:
$script/server
来自/新/
解决方法 我有这个问题.事实证明我创建了一个与我的应用程序一起使用的gemset,然后当我切换到终端中的app文件夹时,它恢复到不支持我的应用程序的默认gemset.您可以通过执行 *** 作来检查您使用的gemset
rvm gemset List
因此,在我的app文件夹中,我使用了切换到相应的gemset.
rvm gemset use [your gemset name]
然后
bundle install
更新gem文件.
事后一切都很好.
总结以上是内存溢出为你收集整理的ruby-on-rails – 在终端输入Rails命令,返回帮助全部内容,希望文章能够帮你解决ruby-on-rails – 在终端输入Rails命令,返回帮助所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)