andreshincapier / whatsapp-api-heroku

Whatsapp api integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

whatsapp-api

This is my version of the project repository here, intended to run on the free tier of heroku, since most of the problems that were detected could be solved in some way.

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 here

Ensure that you're using '--no-sandbox' mode when launching Puppeteer. This can be done by passing it as an argument to your .launch() call:

 puppeteer: { args: ['--no-sandbox'] }

To use the latest stable version run:

heroku buildpacks:add jontewks/puppeteer

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.

For more information about this project, go to, or official GitHub repository

Other problems

Other problems are related to cache data stored in the node_modules folder, to fix this problem just run the commands

heroku plugins:install heroku-builds
heroku builds:cache:purge -a example-app
git commit --allow-empty -m "Purge cache"
git push heroku master

For more information about go to how-do-i-clear-the-build-cache or nodejs-support

License

MIT

About

Whatsapp api integration

License:Other


Languages

Language:JavaScript 98.4%Language:Dockerfile 1.6%