Building and Running the Application in Heroku
Learn how to set up the Docker image to build and deploy an application on Heroku.
We'll cover the following...
As we mentioned when the chapter started, our initial objective was to have an easy, automated, and replicable way to deploy the application. Previously, we created our container image that will work as a basis for that. The next step is to create the pipeline that builds and deploys our code anytime there’s an update. We’ll use git
as our source of truth and mechanism to trigger the pipeline builds.
The platform where we’ll deploy our code is Heroku. This is a platform that aims to simplify tasks for developers and companies in the deployment process by providing a set of tools that removes common obstacles, such as provisioning machines and setting up big CI infrastructures. By using a platform such as this, we can be more focused on the application and on Deno, which is the purpose of this course.
Here, we’ll use the Dockerfile that we previously created and set it up so that it’s deployed and runs on Heroku. We’ll see how easy it is to set up an application to run there, and later we’ll also explore how we can define configuration values via environment variables.
Before we start, make sure to create an account and install the Heroku CLI before we proceed to the step-by-step guide, by following the two links provided here:
Now that we have created an account and installed the ...