Skip to content

Deploy to Heroku

Masanori Ohgita edited this page Nov 30, 2024 · 12 revisions

Deploy to Heroku

Overview

Deploy your app to Heroku using automated deployment from a GitHub repository.

This app can be deployed with either of the following methods:

  • Heroku stack and Node.js buildpack (without Docker):
    • Pros.
      • Easy to deploy in a short build time.
  • Container stack (with Docker):
    • Pros.
      • You can install various dependent packages and native modules, using the apt command and other methods.

Heroku stack and Node.js buildpack

To deploy using this method, you just create a new repository from this repository.

Then, please navigate to https://heroku.com/deploy?template=https://github.com/YOUR_GITHUB_NAME/YOUR_REPOSITORY_NAME/tree/master

Container stack (with Docker)

To deploy using this method, first create a new repository from this repository.

Then, please edit, commit and push the 2 files in your repository as follows:

app.json:

{ "name": "angular-nest", "env": {}, "addons": [], "stack": "container" }

heroku.yml:

build: docker: web: Dockerfile

Then, navigate to https://heroku.com/deploy?template=https://github.com/YOUR_GITHUB_NAME/YOUR_REPOSITORY_NAME/tree/master

References

Clone this wiki locally