rails c 无法在应用程序目录中工作
rails c wont work in app directory
我正在尝试访问生产环境控制台。我认为 rbenv 在搞乱我。
当我运行rails console production
我老了:
Usage:
rails new APP_PATH [options]
所以我想,由于版本的原因,它无法将我的目录识别为 rails 应用程序,所以我 运行。所以 rails -v 告诉我:
deploy@webb-labb2:~/prognoser/current$ rails -v
Rails 5.1.0
哪个是错误的应用程序版本。
bundle exec rails -v 命令给我:
deploy@webb-labb2:~/prognoser/current$ bundle exec rails -v
Rails 4.2.8
哪个是正确的版本。但是:
deploy@webb-labb2:~/prognoser/current$ bundle exec rails console production
仍然给我旧的:
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH]
我运行
$ bundle exec rake rails:update:bin
成功了。而且我必须将引导文件添加到 shared/config 目录。
我正在尝试访问生产环境控制台。我认为 rbenv 在搞乱我。
当我运行rails console production
我老了:
Usage:
rails new APP_PATH [options]
所以我想,由于版本的原因,它无法将我的目录识别为 rails 应用程序,所以我 运行。所以 rails -v 告诉我:
deploy@webb-labb2:~/prognoser/current$ rails -v
Rails 5.1.0
哪个是错误的应用程序版本。 bundle exec rails -v 命令给我:
deploy@webb-labb2:~/prognoser/current$ bundle exec rails -v
Rails 4.2.8
哪个是正确的版本。但是:
deploy@webb-labb2:~/prognoser/current$ bundle exec rails console production
仍然给我旧的:
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH]
我运行
$ bundle exec rake rails:update:bin
成功了。而且我必须将引导文件添加到 shared/config 目录。