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.
Create a Heroku app called "hello-underworld".
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
Initialize a git repository in a new or existing directory.
$ git init
$ heroku git:remote -a hello-underworld
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 the Heroku App at https://hello-underworld.herokuapp.com/.