deploy react redux at heroku

 Deploy React Application On heroku


1- gir add.

2- git commit -m "first commit"

3- add Heroku remote 

4- heroku buildpacks:set mars/create-react-app

5- heroku config:set JS_RUNTIME_TARGET_BUNDLE='/app/dist/*.js'

6- git push heoku master

7- Create static.json into root directory 
    Put code in to static.json
{
  "root": "dist/",
  "routes": {
    "/**": "index.html"
  }
}

8- heroku open

Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5