Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Phantomjs on Heroku [closed]

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

like image 224
Justin Meltzer Avatar asked Jun 22 '11 19:06

Justin Meltzer


2 Answers

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

like image 145
subelsky Avatar answered Oct 17 '22 02:10

subelsky


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 :)

like image 44
Detro Avatar answered Oct 17 '22 03:10

Detro