Is there a working nodejs/phantomjs Heroku buildpack?

后端 未结 6 924
抹茶落季
抹茶落季 2020-12-13 16:27

I\'d like to deploy an app with a Procfile that runs

web: node myapp.js

Where myapp.js uses phantomjs-node to run headless web

6条回答
  •  悲&欢浪女
    2020-12-13 17:10

    I also ran into the same problem, the way I fixed it was by using this "Multiple Buildpack" Buildpack. Then in my .buildpacks file I put the following:

    http://github.com/heroku/heroku-buildpack-nodejs.git
    http://github.com/stomita/heroku-buildpack-phantomjs.git
    

    Finally, you want to add PhantomJS to the path

    heroku config:set PATH=$PATH:vendor/phantomjs/bin
    

    I hope this helps.

提交回复
热议问题