为什么是“rails runner -e 生产"不工作? [英] Why is "rails runner -e production" not working?
本文介绍了为什么是“rails runner -e 生产"不工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为了解决我的问题,这在will_paginate error in生产未定义的方法'分页'",我尝试运行:
To solve my problem, which is discussed in "will_paginate error in production undefined method 'paginate'", I tried running:
script/rails runner -e production
和:
bundle exec script/rails runner -e production
在此 github 问题中建议的服务器上:https://github.com/mislav/will_paginate/issues/308#issuecomment-17167158
on the server like suggested in this github issue: https://github.com/mislav/will_paginate/issues/308#issuecomment-17167158
但我收到以下错误:
bundler: command not found: script/rails
Install missing gem executables with `bundle install`
捆绑安装没有帮助.有什么建议吗?
Bundle install doesn't help. Any suggestions?
我正在使用:Ruby 2.0.0p247、Rails 4.0.0、Ubuntu 12.10 LTS、Unicorn、Capistrano
I'm using: Ruby 2.0.0p247, Rails 4.0.0, Ubuntu 12.10 LTS, Unicorn, Capistrano
推荐答案
试试这个:
bundle exec rails runner -e production
.
这篇关于为什么是“rails runner -e 生产"不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文