Skip to content

πŸ“Š Add pm2 and deep monitoring to heroku

License

Notifications You must be signed in to change notification settings

urvinn/heroku-buildpack-pm2

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PM2 Buildpack

This buildpack install pm2, gc-stats and event-loop-inspector.

Install

Add nodejs buildpack:

heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs

Add pm2 buildpack at index 2:

heroku buildpacks:add --index 2 https://github.com/ItsJimi/heroku-buildpack-pm2

To start your node app with pm2, go to your package.json:

"scripts": {
  "start": "pm2 start index.js --deep-monitoring --attach"
}

To monitor your application with pm2, got to your PM2 Dashboard, get public key and secret key. After, you can go to heroku apps settings, Reveal Config Vars button and add:

KEYMETRICS_PUBLIC

and

KEYMETRICS_SECRET

About

πŸ“Š Add pm2 and deep monitoring to heroku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%