node-phantom-simple icon indicating copy to clipboard operation
node-phantom-simple copied to clipboard

running headless with xvfb does not work

Open openrijal opened this issue 8 years ago • 2 comments

I am trying to run slimerjs with xvfb. the readme says to add this to the .travis.yml

before_script:
  - export DISPLAY=:99.0
  - "sh -e /etc/init.d/xvfb start"

I'm on centos hence, xvfb is at /usr/bin/Xvfb, replaced that path, but it does not work. I also tried to use /usr/bin/xvfb-run that I use to launch slimerjs from commandline, that works when I run from commandline but not through this module.

Any ideas on this?

openrijal avatar Jun 15 '16 06:06 openrijal

I even tried to run it as a service through systemctl, still the same.

openrijal avatar Jun 15 '16 06:06 openrijal

Try this: https://gist.github.com/jdneo/c3450bc83ba2f0b1597cffd49f69986b

jdneo avatar Sep 08 '16 14:09 jdneo