Can i run xvfb on Heroku?

I want to run xvfb on Heroku. On my mac, I used dmg to install it. Can anyone think how to do this on Geroku?

I came across these buildpacks ( http://github.com/douglasjsellers/heroku-xvfb-buildpack ), but following the instructions, it seems that the problem could not be solved, since xvfb is still not installed correctly. Also, I tried installing xvfbwrapper ( https://pypi.python.org/pypi/xvfbwrapper/0.1.0 ), but it still does not work on Heroku (apologies for being potentially a noob issue).

Here is the error I get in my journals from Heroku:

2015-02-24T02:09:16.035298+00:00 app[web.6]: cmd=['Xvfb', '-help']
2015-02-24T02:09:16.035564+00:00 app[web.6]: Program install error! 
2015-02-24T02:09:16.035302+00:00 app[web.6]: OSError=[Errno 2] No such file or directory

Here is the code:

temp = tempfile.mkstemp(suffix='.html')
html = os.fdopen(temp[0], "r+")
html.write(cv)
html.seek(0, 0)

display = Display(visible=0, size=(800, 600))
display.start()

# Open the file on Selenium to load the JavaScript
driver = webdriver.Firefox()
driver.get("file://" + temp[1])
+4
source share
3

, , Xvfb Cedar-14, # 2 . , :

  • buildpack-apt x11-xkb-utils xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic libxfont1 xvfb.

  • apt buildpack Xvfb, . run- bash buildpack, , bash script Heroku, . script Xvfb : https://gist.github.com/fxtentacle/960cdb96ece01add8686

  • heroku run bash XAUTHORITY=/tmp/xvfb-run.2NG0xl/Xauthority Xvfb ":99" -screen 0 1280x1024x24 -nolisten tcp, Xvfb .

+4

, , . , fxtentacle ( ), . Xvfb; - .

heroku-buildpack-apt debian xvfb libnotify4. buildpack /usr/bin/xkbcomp: https://github.com/captain401/heroku-buildpack-xvfb

xvfb-run $PROGRAM .

+4

. , . - 1+ , .

:

+2

All Articles