how to run phantomjs on heroku?

前端 未结 2 1272
执笔经年
执笔经年 2020-12-30 06:55

I am trying to run phantomjs on the heroku cedar stack.

I am using a phantomjs buildpack for heroku https://github.com/stomita/heroku-buildpack-phantomjs. However I

2条回答
  •  天涯浪人
    2020-12-30 07:31

    Download the 64-bit linux binary file from phantomjs.org here http://phantomjs.org/download.html

    Create a bin/ directory in your app if you do not already have one and place the binary file there. You should then be able to test if you can run it with "heroku run 'phantomjs'" or "heroku run 'bin/phantomjs'"

提交回复
热议问题