Building the Ranch - Deploying to Heroku
Deploy your application to Heroku
Now that you’ve got the code, it’s time to set up shop on Heroku, your digital cattle ranch:
- Ensure the Heroku CLI is installed.
heroku --version- Login to your Heroku account.
heroku login- Create a new Heroku app and give it a name that'd make any cowpoke proud.
💡 Tip: Use your username as prefix for app name to make it unique
heroku create yourLastName-tdx25-trail-boss- If you're using the Heroku team for this workshop, add the
-t tdx25-heroku-slackto create the application in that team - Add and commit the files to Git then deploy to Heroku!
git add.
git commit -m "First deploy to Heroku!"
git push heroku main- Get the Heroku URL
heroku open- This URL (e.g., https://your-app-name-herokuapp.com/) will be needed for Slack configuration.
❗️If you try to open this webpage now, it won't work. Looking at
heroku logs --tailwill show that the Slack configuration settings aren't set. We'll do that in the next step!