Question

I have seen posts that you can change the build on Heroku, to use PhantomJS with the Cedar stack, but is it possible to run a headless browser on the unicorn stack?

Was it helpful?

Solution

Yes, and someone already wrote a buildpack for including PhantomJS (the internet and open source are amazing).

If you want to run headless PhantomJS on a Heroku dyno, you will need to:

The multi buildpack must be configured as the official Heroku buildpack. You then need to add the other two buildpack URLs to the .buildpacks file. There are additional details for configuring each buildpack at the links above.

Using this, you should be able to deploy your Rails app, run your PhantomJS code/tests, all on a single dyno headlessly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top