Deploy the Application
Explore how to deploy your full stack application to Heroku by pushing your latest code, setting up dynos to serve web traffic, and verifying your app runs live online. Understand how to use the Heroku CLI to scale your app and manage server resources efficiently.
We'll cover the following...
We'll cover the following...
Deploying an application to Heroku
We now only need to deploy the application and tell it to use a dyno. To deploy it, we use git to add and commit our latest changes. The new configuration files and Procfile should also be added. Once this is done, we push a copy to Heroku:
$ git push heroku master
Enumerating objects: 35, done.
Counting objects: 100% (35/35), done.
Delta compression using up to 4 threads
Compressing objects: 100% (23/23), done.
Writing objects: 100% (23/23), 156.18 KiB | 3.72 MiB/s, done.
Total 23 (delta 8), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> nginx-buildpack app detected
remote: -----> nginx-buildpack: Installed nginx/1.16.1 to app/bin
remote: -----> nginx-buildpack: Added start-nginx to app/bin
remote: -----> nginx-buildpack: Added start-nginx-solo to app/bin
remote: ...