Heroku错误:"无法在您的路径上找到可执行文件[" phantomjs"]。"

时间:2015-05-17 14:34:08

标签: ruby heroku phantomjs buildpack

我在heroku控制台

中运行ruby bin/test.rb时出错

错误

"Could not find an executable ["phantomjs"] on your path."

我有两个文件: bin / test.rb和Gemfile

的Gemfile

source 'https://rubygems.org'

gem 'capybara'
gem 'poltergeist'
gem 'mail'
gem 'rmagick'

我跑了

 heroku config:add BUILDPACK_URL=https://github.com/stomita/heroku-buildpack-phantomjs.git

我跑了

 heroku config:set PATH="/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin" 

我不确定phantonJS的路径或构建包放置的位置 如何修复此错误?

1 个答案:

答案 0 :(得分:0)

我不得不重新授权Heroku让它运转起来。捆绑安装和重启是不够的。