Skip to content

leimao/Heroku-Docker-Example

Repository files navigation

Heroku App Hello Underworld Docker Example

This sample is based on the Google Cloud Run hello-world example. With minimum modification, the sample app could be deployed on Heroku. More specifically, only one additional heroku.yml file is required.

Instructions

Create Heroku App

Create a Heroku app called "hello-underworld".

Install the Heroku CLI

Download and install the Heroku CLI.

If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.

$ heroku login

Create a new Git repository

Initialize a git repository in a new or existing directory.

$ git init
$ heroku git:remote -a hello-underworld

Deploy your application

Commit your code to the repository and deploy it to Heroku using Git.

$ git add .
$ git commit -am "make it better"
$ heroku stack:set container
$ git push heroku main

View Heroku App

View the Heroku App at https://hello-underworld.herokuapp.com/.

References