Search code examples
herokuphantomjsbuildpack

Is there a working nodejs/phantomjs Heroku buildpack?


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 webkit stuff, returning the results to browser requests. Is this possible?


Solution

  • Heroku Toolbelt now has first class support for multiple buildpacks, so you can get a working Node and PhantomJS setup with the following:

    heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs.git

    heroku buildpacks:add --index 1 https://github.com/stomita/heroku-buildpack-phantomjs.git