我在Heroku Console中运行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的路径或构建包放在哪里。
我如何解决此错误?
我必须在Heroku上做一个建议才能使其正常工作。束安装和重新启动还不够。