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: https://polar-peak-91443.herokuapp.com/
- Second way:
- I just update the package.json file from rbp git..
- Add the heroku procfile
- and run heroku command. it works fine :)
- demo: https://calm-basin-19770.herokuapp.com/

Comments :
Post a Comment