FWeinb / electron-screenshot-service

Take screenshots using electron
MIT License
141 stars 26 forks source link

Not Working on Heroku Deployment #18

Closed samcus closed 8 years ago

samcus commented 8 years ago

My test is working on my local server (I'm running OSX,) but it is not working on my Heroku dyno (Linux)

I tried removing "." from "./" in my output I also tried swapping "./" with __dirname

Neither worked, and I'm receiving an application error on my Heroku

samcus commented 8 years ago

Also, the error being returned is 503 with advance details of a timeout error (meaning it is taking longer than 30 seconds) I ran a performance capture on my local machine and it is generating all my files within 8 seconds so I'm not sure what is causing it to hang.

samcus commented 8 years ago

Wondering if it could be related to something like this https://github.com/stomita/heroku-screenshot/tree/master/phantomjs I know this isn't phantomjs, but it might point us in the right direction.

https://devcenter.heroku.com/articles/stack

ColemanGariety commented 8 years ago

@samcus Heroku doesn't have xvfb: https://en.wikipedia.org/wiki/Xvfb. If you can get it working, many will be happy. I have been unable.