heroku create
heroku create git push heroku main heroku run rake db:migrate heroku run rake db:seed heroku open
Heroku has built-in function for deploying changes directly from Github to your Heroku app. This tutorial will go through how to set it up.
Note: Skip this step if you already connected the Github repo to Heroku.
Click “Connect to GitHub” using an account that either owns the project repo, or has contributor access to the repo.
Click “Connect” to the project repo. E.g. hojulian/ruby-getting-started.
hojulian/ruby-getting-started
To tell Heroku to deploy on new code changes, enable “Automatic Deploys”.
Choose the branch where the newest changes are located (this is usually main). And click “Enable Automatic Deploys”.
main
This will enable automatic deployment on the Heroku side.
Note: Skip this step if your project is already up and running on Heroku
Since your app is deployed yet, you will need to manually deploy it for the first time.
Click “Deploy Branch” and Heroku will pull the latest copy of your project and deploy it!
On success, you will see a green tick next to “Deploy to Heroku”. If it failed, check the Build logs for any errors.
(Credit: Martin Fowler)