DEV Community

Cover image for How to deploy react projects to heroku
Abod Micheal (he/him)
Abod Micheal (he/him)

Posted on

How to deploy react projects to heroku

$ npm install -g heroku

//confirm heroku has been installed , it would show the version
$ heroku --version

$ heroku login -i

//make sure you are in your react project directory

$ git init

$ git add .

$ git commit -m "initial commit"

$ heroku create

$ git push heroku master

Enter fullscreen mode Exit fullscreen mode

Top comments (0)