brenden / node-webshot

Easy website screenshots in Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running on AWS Lambda

CBox opened this issue · comments

Hey,

I'm trying to run it on AWS Lambda and getting this error:
Error: spawn /var/task/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe ENOENT

My local machine is Win but why it's trying to use the exe? Can I change the path?

Thanks.

I've found that I need to run it with:
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2

How I can change the path for the PhantomJS?

Found this on the options: "phantomPath" thanks!

can you share the snippet and file structure of how u used websnapshot on lambda