manet icon indicating copy to clipboard operation
manet copied to clipboard

heroku deployment issue with slimerjs

Open webtrend opened this issue 10 years ago • 4 comments

I have been successfully able to deploy the app running phantomjs on heroku. However, when I change to slimerjs (in Procfile), everything proceeds normally (no errors during deployment). But the app is not fetching any data. It always gives following error.

 {"error":"Can not capture site screenshot"}

Am I suppose to change anything else?

webtrend avatar Sep 08 '15 02:09 webtrend

Narrowed it down further to the following xvfb error

The debug log file shows following error

  Error: Process Error: /bin/sh:  xvfb-run: Not found

webtrend avatar Sep 08 '15 06:09 webtrend

The build runs locally but when I deploy on heroku it gives xvfb error. It looks like heroku specific issue. I am not sure how to solve it though

webtrend avatar Sep 08 '15 06:09 webtrend

@webtrend Hello, have you tried to install xvfb buildpack?

Ex:

  • https://github.com/douglasjsellers/heroku-xvfb-buildpack
  • https://github.com/runemadsen/xvfbbuildpack

vbauer avatar Sep 08 '15 08:09 vbauer

I've just researched this problem with xvfb and I think it could be quite complicated to install it on Heroku.. Maybe it will be simpler to use PhantomJS for now, until SlimerJS is not headless browser (https://github.com/laurentj/slimerjs/issues/80).

vbauer avatar Sep 10 '15 22:09 vbauer