vbauer / manet

Website screenshot service powered by Node.js, SlimerJS and PhantomJS
MIT License
578 stars 102 forks source link

heroku deployment issue with slimerjs #33

Open webtrend opened 8 years ago

webtrend commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

vbauer commented 8 years ago

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

Ex:

vbauer commented 8 years ago

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