ruby bin/test.rb
在heroku控制台中运行时出现错误
"Could not find an executable ["phantomjs"] on your path."
我有两个文件:bin / test.rb和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进行重新提交才能使其正常运行。捆绑软件安装和重新启动还不够。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句