reading-notes

Heroku Deployment

Source: Getting Started with Node.js

Source: Deploying a Simple Bloe with Heroku

Overview

Node.js: Cross-platform runtime env. Build server-side / networking apps in js.

Heroku: Container-based cloud platform, allows easy deployment/management of apps.

Initial Setup Steps

  1. Install the CLI (command line interface)

    brew install heroku/brew/heroku
    
  2. Prepare the app

    git clone https://github.com/heroku/node-js-getting-started.git
    cd node-js-getting-started
    
  3. Deploy the app

    heroku create
    git push heroku main
    heroku ps:scale web=1
    heroku open
    
  4. View logs

    heroku logs --tail
    

Back