Running Phantomjs on Heroku [closed]

给你一囗甜甜゛ 提交于 2019-12-18 10:54:12

问题


Is there a way to run phantomjs, a command-line tool, on Heroku?


回答1:


check out this buildpack:

https://github.com/stomita/heroku-buildpack-phantomjs

I also am able to run the x86_64 build of PhamtomJS, just stuck in my app's vendor directory:

http://phantomjs.org/download.html




回答2:


In Version 1.5 we got rid of the Xvfb and Xlib dependencies. Now this should be pretty simple.

I'd suggest:

  • checkout the source
  • build a binary with the given script (check the options to build the version without xvfb)
  • be happy :)

Ariya, the main author, also did a good job at incorporating Qt in our codebase directly, so we have a tailored, stripped down Qt that does just what PhantomJS needs and no more :)




回答3:


I'm not familiar with Phantom, but it looks like a binary, in which case there's a Heroku buildpack which might help you out here:

https://github.com/ryandotsmith/null-buildpack



来源:https://stackoverflow.com/questions/6445438/running-phantomjs-on-heroku

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