steps in deploying heroku app code example

Example 1: heroku create app

heroku create <app_name_you_want_it_to_be>
# Make sure you have heroku CLI installed and have added it to PATH.

Example 2: how to deploy heroku app

I assume you know how to use git.
I also assume you've ran the heroku create command for the app.

First commit the app if you haven't, then run this command:
git push heroku master

If there's an error, then try to fix it.

After that access the website by running this command:
heroku open

And run this command if you encounter an error with the website:
heroku logs --tail