gpt4 book ai didi

ruby-on-rails - Rails 服务器不通过命令 "Rails s"启动

转载 作者:数据小太阳 更新时间:2023-10-29 06:38:24 24 4
gpt4 key购买 nike

我是 ruby​​ 和 rails 的新手,我在 ubuntu 中安装了 rails。但是当我通过键入“rails s”转到启动服务器时,它不会启动并出现以下消息。但我可以通过命令 rails new new_project 创建一个新项目。请 Rails 专家帮助我。

root@ubuntu:~# rails s Usage: rails new APP_PATH [options] Options: -j, [--javascript=JAVASCRIPT] 
# Preconfigure for selected JavaScript library # Default: jquery -m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) [--dev]
# Setup the application with Gemfile pointing to your Rails checkout -J, [--skip-javascript] # Skip JavaScript files [--edge]
# Setup the application with Gemfile pointing to Rails repository -G, [--skip-git]
# Skip Git ignores and keeps -d, [--database=DATABASE]
# Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3 -b, [--builder=BUILDER]
# Path to a application builder (can be a filesystem path or URL) -r, [--ruby=PATH]
# Path to the Ruby binary of your choice
# Default: /usr/bin/ruby1.8 [--old-style-hash]
# Force using old style hash (:foo => 'bar') on Ruby >= 1.9 [--skip-gemfile]
# Don't create a Gemfile -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 Runtime options: -q, [--quiet]
# Supress status output -f, [--force]
# Overwrite files that already exist -s, [--skip]
# Skip 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 Description: The 'rails new' command creates a new Rails application with a default directory structure and configuration at the path you specify. You can specify extra command-line arguments to be used every time 'rails new' runs in the .railsrc configuration file in your home directory. Note that the arguments specified in the .railsrc file don't affect the defaults values shown above in this help message. Example: rails new ~/Code/Ruby/weblog This generates a skeletal Rails installation in ~/Code/Ruby/weblog. See the README in the newly created application to get going

最佳答案

更好的方法是使用以下命令更新您的 bin

bundle exec rake rails:update:bin

关于ruby-on-rails - Rails 服务器不通过命令 "Rails s"启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10054406/

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