based on this answer https://stackoverflow.com/a/60586343/3711660
- Create heroku app
heroku login
heroku git:remote -a YOUR-HEROKU-APP-NAME
- Run
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-chromedriver
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-google-chrome
heroku config:set CHROME_DRIVER_PATH=/app/.chromedriver/bin/chromedriver
heroku config:set CHROME_BINARY_PATH=/app/.apt/opt/google/chrome/chrome
- Login to heroku from your browser and navigate to your app. Go to settings and under buildpacks, add heroku/nodejs
git add .
git commit -m "my app"
git push heroku master