Using a headless browser with Heroku Rails Unicorn stack

我们两清 提交于 2019-11-30 15:53:40

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!