Lately, direct deployment of a Heroku App connecting it to Github is forbidden due to security concerns. Nonetheless, through the CLI, deployment on Heroku can be done.

These are the following steps. I’m assuming git is installed in the CLI and the directory is Heroku-ready.

  1. Install the Heroku CLI
  2. cd repository-to-be-deployed
  3. heroku login -i This allows login from the CLI to your Heroku account
  4. heroku create This creates an app, with a random URL. It can be renamed
  5. git add --all
  6. git commit -m "Whatever commit message you like
  7. git push heroku master Give it a few minutes, and the deployment is done!

--

--