Skip to content
Heroku Workshops

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-slack to 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

❗️If you try to open this webpage now, it won't work. Looking at heroku logs --tail will show that the Slack configuration settings aren't set. We'll do that in the next step!