Add info about deploying puppeteer to Heroku (#762)

This commit is contained in:
Jon Tewksbury 2017-09-12 09:54:30 -07:00 committed by Eric Bidelman
parent 9292a56eaf
commit 9779085b7c

View File

@ -135,3 +135,11 @@ Run the container by passing `node -e "<yourscript.js content as a string>` as t
There's a full example at https://github.com/ebidel/try-puppeteer that shows There's a full example at https://github.com/ebidel/try-puppeteer that shows
how to run this setup from a webserver running on App Engine Flex (Node). how to run this setup from a webserver running on App Engine Flex (Node).
## Running Puppeteer on Heroku
Running Puppeteer on Heroku requires some additional dependencies that aren't included on the Linux box that Heroku spins up for you. To add the dependencies on deploy, add the Puppeteer Heroku buildpack to the list of buildpacks for your app under Settings > Buildpacks.
The url for the buildpack is https://github.com/jontewks/puppeteer-heroku-buildpack
When you click add buildpack, simply paste that url into the input, and click save. On the next deploy, your app will also install the dependencies that Puppeteer needs to run.