gpt4 book ai didi

ruby-on-rails - rails - 启动服务器时出现问题

转载 作者:数据小太阳 更新时间:2023-10-29 08:41:23 27 4
gpt4 key购买 nike

我正在尝试在 Rails 应用程序上启动服务器。对于某些应用程序,它工作正常,其他应用程序我收到此消息:

rails s
Usage:
rails new APP_PATH [options]

Options:
[--skip-gemfile] # Don't create a Gemfile
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db)
# Default: sqlite3
-O, [--skip-active-record] # Skip Active Record files
[--dev] # Setup the application with Gemfile pointing to your Rails checkout
-J, [--skip-prototype] # Skip Prototype files
-T, [--skip-test-unit] # Skip Test::Unit files
-G, [--skip-git] # Skip Git ignores and keeps
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
-m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL)
-b, [--builder=BUILDER] # Path to an application builder (can be a filesystem path or URL)
[--edge] # Setup the application with Gemfile pointing to Rails repository

Runtime options:
-q, [--quiet] # Supress status output
-s, [--skip] # Skip files that already exist
-f, [--force] # Overwrite files that already exist
-p, [--pretend] # Run but do not make any changes

Rails options:
-h, [--help] # Show this help message and quit
-v, [--version] # Show Rails version number and quit

我正在使用 Rails 3.0.3 和 ruby​​ 1.8.7

最佳答案

我认为您正在尝试使用此命令运行 Rails 2.x 应用程序。它将失败并显示此消息。由于它在某些应用程序上一直失败,请检查它们是否是 Rails 2.x 应用程序。

您只能使用此命令运行 Rails 3.x 应用程序。

关于ruby-on-rails - rails - 启动服务器时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4361882/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com