rails 脚本/服务器不启动服务器 [英] rails script/server doesn't start the server

查看:63
本文介绍了rails 脚本/服务器不启动服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了http://github.com/bestbuyremix/BBYIDX

现在当我输入:

rails 脚本/服务器

rails script/server

我得到了输出,但服务器没有启动??

I got the output, but server doesn't start??

create  
      create  app/controllers
      create  app/helpers
      create  app/models
      create  app/views/layouts
      create  config/environments
      create  config/initializers
      create  db
      create  doc
      create  lib
      create  lib/tasks
      create  log
      create  public/images
      create  public/javascripts
      create  public/stylesheets
      create  script/performance
      create  script/process
      create  test/fixtures
      create  test/functional
      create  test/integration
      create  test/unit
      create  vendor
      create  vendor/plugins
      create  tmp/sessions
      create  tmp/sockets
      create  tmp/cache
      create  tmp/pids
      create  Rakefile
      create  README
      create  app/controllers/application.rb
      create  app/helpers/application_helper.rb
      create  test/test_helper.rb
      create  config/database.yml
      create  config/routes.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/new_rails_defaults.rb
      create  config/boot.rb
      create  config/environment.rb
      create  config/environments/production.rb
      create  config/environments/development.rb
      create  config/environments/test.rb
      create  script/about
      create  script/console
      create  script/dbconsole
      create  script/destroy
      create  script/generate
      create  script/performance/benchmarker
      create  script/performance/profiler
      create  script/performance/request
      create  script/process/reaper
      create  script/process/spawner
      create  script/process/inspector
      create  script/runner
      create  script/server
      create  script/plugin
      create  public/dispatch.rb
      create  public/dispatch.cgi
      create  public/dispatch.fcgi
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/index.html
      create  public/favicon.ico
      create  public/robots.txt
      create  public/images/rails.png
      create  public/javascripts/prototype.js
      create  public/javascripts/effects.js
      create  public/javascripts/dragdrop.js
      create  public/javascripts/controls.js
      create  public/javascripts/application.js
      create  doc/README_FOR_APP
      create  log/server.log
      create  log/production.log
      create  log/development.log
      create  log/test.log

推荐答案

在 Rails 3 之前,rails 脚本的工作只是创建一个新的 RoR 应用程序,这就是你的全部做:在 script/server 目录中创建一个新的 Rails 应用.

Prior to Rails 3, the job of the rails script was simply to create a new RoR app, which is all you're doing: Creating a new Rails app in the script/server directory.

您想运行 ruby script/server 以使用 Ruby 解释器调用服务器脚本.

You want to run ruby script/server to invoke the server script with the Ruby interpreter.

在 Rails 3 中,rails 脚本还负责调用应用程序中的其他脚本:ruby script/server 已成为 rails serverruby script/generate变成了rails generate等等.

In Rails 3, the rails script is also responsible for invoking other scripts within your app: ruby script/server has become rails server, ruby script/generate has become rails generate and so on.

这篇关于rails 脚本/服务器不启动服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆