小编jmc*_*ist的帖子

为什么"rails s"不能从app目录中运行?

我在我的app文件夹中,但命令rails s无效.我在Stack Overflow上阅读了很多帖子,其中大部分内容似乎来自不在其app目录中的用户.

另外,我还构建了一些其他应用程序.我检查了这些,Rails服务器适用于所有这些应用程序.这是唯一一个我无法启动它的地方.

产量which rails:

/Users/jmcrist/.rvm/gems/ruby-2.0.0-p247/bin/rails
Run Code Online (Sandbox Code Playgroud)

产量rails s:

MacBook-Pro:first_app jmcrist$ rails s
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
                                 # Default: /Users/jmcrist/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
  -b, [--builder=BUILDER]        # Path to a application builder (can be a filesystem path or URL)
  -m, [--template=TEMPLATE]      # Path to an application template (can be a filesystem path or URL)
      [--skip-gemfile]           # Don't create a Gemfile
      [--skip-bundle]            # Don't run bundle …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails gemfile

17
推荐指数
3
解决办法
2万
查看次数

标签 统计

gemfile ×1

ruby ×1

ruby-on-rails ×1