Deployment on Heroku

Nishit Ranjan
1 min readJul 3, 2019

--

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

--

--

Nishit Ranjan
Nishit Ranjan

Written by Nishit Ranjan

0 Followers

I am a software engineer. I specialize in JavaScript, React.js, NodeJS, Docker and Kubernetes.

No responses yet