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.
- Install the Heroku CLI
cd repository-to-be-deployed
heroku login -i
This allows login from the CLI to your Heroku accountheroku create
This creates an app, with a random URL. It can be renamedgit add --all
git commit -m "Whatever commit message you like
git push heroku master
Give it a few minutes, and the deployment is done!