How to deploy new react-boilerplate-cra-template

Photo by Jess Bailey on Unsplash

How to deploy new react-boilerplate-cra-template

#React #Deploy

How to deploy new react-boilerplate-cra-template

 RBP community ask for help, in order to deploy their lastest code to heroku server.

There are two ways to do this:

  • First way :

    • run this command
      npx create-react-app --template cra-template-rb my-app
      
      • create a procfile
      • web: npm run start:prod
      • run command, heroku create, using heroku cli
      • run basic git commit command
      • run git push heroku master
      • it got deployed on heroku server.
      • demo: polar-peak-91443.herokuapp.com

Alt text of image

  • Second way:

    • I just update the package.json file from rbp git..
    • Add the heroku procfile
    • and run heroku command. it works fine :)
    • demo: calm-basin-19770.herokuapp.com