简体   繁体   English

为什么Rails Console无法在带有Rails 3.1.3的ubuntu上启动

[英]Why rails console did not fire up on ubuntu with rails 3.1.3

When type rails console under the deploy subdir on ubuntu, instead of firing up the console, it displays help message for rails: 当在ubuntu上的deploy子目录下键入rails console ,而不是启动控制台,而是显示rails的帮助消息:

Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]              # Path to the Ruby binary of your choice

However irb can fire up without error. 但是, irb可以正常启动。 Anyone knows why? 有人知道为什么吗? Thanks so much. 非常感谢。

Check this answer here: typing 'rails console' doesn't start? 在此处检查此答案: 输入“ rails console”无法启动?

You need to make sure that your current directory is the base directory of a rails app, because the rails console command needs to load the environment of that app. 您需要确保当前目录是Rails应用程序的基本目录,因为rails console命令需要加载该应用程序的环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM