From 9779085b7cd13069cb5144ed7660a120e3527cbc Mon Sep 17 00:00:00 2001 From: Jon Tewksbury Date: Tue, 12 Sep 2017 09:54:30 -0700 Subject: [PATCH] Add info about deploying puppeteer to Heroku (#762) --- docs/troubleshooting.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 7122d0cc..19608173 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -135,3 +135,11 @@ Run the container by passing `node -e "` as t 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). + +## 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.