reading-notes

Installing Heroku

procfile - a text file in the root directory of your application, to explicitly declare what command should be executed to start your app.

web: node index.js is an example

This declares a single process type, web, and the command needed to run it

The name web is important here. It declares that this process type will be attached to the HTTP routing stack of Heroku, and receive web traffic when deployed.

a dyno is a lightweight container that runs the command specified in the Procfile

To check how many dynos are running use the ps command

heroku ps

the command to scale is heroku ps: scale web=0

To create one: npm init --yes.

heroku local web

Add-ons are third-party cloud services that provide out-of-the-box additional services for your application, from persistence through logging to monitoring and more.

By default, Heroku stores 1500 lines of logs from your application. However, it makes the full log stream available as a service - and several add-on providers have written logging services that provide things such as log persistence, search, and email and SMS alerts.

https://deannaj401.github.io/reading-notes/