Deployment on Heroku
Here, we will learn to create, initialize and push a git repository and then deploy it on Heroku platform.
Download heroku installer on WINDOWS
Check heroku -v
Initialise your project in git by using
git init
git add
git commit -m “<some comment>”
When the above has been done, do the following:
heroku login
heroku create
Copy the git branch, then
git remote add heroku <git repo_name>
then:-
git push heroku master. This command will push our project to git repo.
After it’s done, do git open.
Note :- heroku logs will give you the logs
The above set of procedures should be followed only at the time of first deployment.
For subsequent deployment, do the following:
git status
git add
git commit -m “<some comments>”
git push heroku master