【问题标题】:rails console Cloud9 - Can't open consolerails console Cloud9 - 无法打开控制台
【发布时间】:2015-02-14 22:25:04
【问题描述】:

注意 - 我自己解决了问题。问题是我从工作区运行“rails 控制台”命令,而不是 sample_app 目录。

当我尝试在 Cloud9 中运行“rails 控制台”时,我得到以下信息。我要做的就是打开控制台-我错过了什么?谢谢!

~/workspace $ rails 控制台 用法: rails new APP_PATH [选项]

运行时选项: ...

导轨选项: ...

说明: 'rails new' 命令创建一个新的 Rails 应用程序,默认 您指定的路径中的目录结构和配置。

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.

示例: 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.

【问题讨论】:

    标签: cloud9-ide


    【解决方案1】:

    您可能在workspace 目录中。您需要位于应用的目录中:

    cd app_name/
    

    cd ~/workspace/app_name/
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-09
      • 2023-03-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多