Dummy’s guide to deploying to Heroku
According to what I’ve gathered (and understood), these are the things you’ll need to do to deploy to Heroku.
- Install Git and Heroku on your machine, the latter Should already be installed.
- Then connect to your Heroku app from the Heroku CLI
- Create a Procfile in your project, place it in the route. This will inform Heroku on how to build your project.
- Set up
heroku
remote in your repository, just like you set uporigin
as the GitHub remote and even other remotes.- Use
git remote
to check all the remote endpoints in your local repo.
- Use
- Once all is set up and good, simply push your branch to the Heroku remote using:
git push heroku main
. - Heroku will manage the rest.