Run puppeteer in Heroku free node!

$ cd xx # cd in you git repository
$ heroku login -i # login heroku
$ heroku create  # create a free node
$ heroku buildpacks:add --index 1 heroku/nodejs
$ heroku buildpacks:add --index 2
$ git add .
$ git commit -m "init commit"
$ git push heroku master
# push you code to the apps and it will auto build the chrome environment and run you puppeteer code!

# login to the heroku website and start the worker dyno(by default the worker dyno is disable)

Leave a Reply

Your email address will not be published. Required fields are marked *