I've created a small Rails app that checks recularly the content of one of my sites with poltergeist and Capybara. Everything works great in dev on my mac. But when I test it on my production server I get the following server.
Capybara::Poltergeist::PhantomJSFailed (PhantomJS returned non-zero exit status 127. Make sure phantomjs runs successfully on your system. You can test this by just running the phantomjs
command which should give you a Javascript REPL.):
Phantomjs works. I've tested it from the command-line. And what puzzles me more is that it also works when I run my method from the rails console on the production server.
Any idea?