Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is "rails runner -e production" not working?

To solve my problem, which is discussed in "will_paginate error in production undefined method 'paginate'", I tried running:

script/rails runner -e production

and:

bundle exec script/rails runner -e production

on the server like suggested in this github issue: https://github.com/mislav/will_paginate/issues/308#issuecomment-17167158

But I get the following error:

bundler: command not found: script/rails
Install missing gem executables with `bundle install`

Bundle install doesn't help. Any suggestions?

I'm using: Ruby 2.0.0p247, Rails 4.0.0, Ubuntu 12.10 LTS, Unicorn, Capistrano

like image 805
crispychicken Avatar asked Dec 29 '25 16:12

crispychicken


1 Answers

Try this instead:

bundle exec rails runner -e production.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!