crispychicken
crispychicken

Reputation: 2662

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

Upvotes: 3

Views: 5572

Answers (2)

user419017
user419017

Reputation:

Try this instead:

bundle exec rails runner -e production.

Upvotes: 8

Related Questions