DEV Community

Discussion on: How to deploy React App to GitHub Pages

Collapse
 
vicentgn profile image
Vicent García • Edited

Very interesting tutorial Ibrahim!
I have a question: how do you update the production build?
I mean: after deploying the app on GitHub, I realized that I need to change some stuffs. So I have generated new commits. If my app points to the master branch, how can I reflect that new changes on the production build then?

Thanks

Collapse
 
yuribenjamin profile image
Ibrahim Ragab

Make changes commit then deploy again, that's it

Collapse
 
vicentgn profile image
Vicent García

Ok! Thanks!

Thread Thread
 
yuribenjamin profile image
Ibrahim Ragab

If you want to updating the release check
create-react-app.dev/docs/updating...

Thread Thread
 
vicentgn profile image
Vicent García

Perfect!
Thanks!

Collapse
 
firzatullahd profile image
Firzatullah Dwiko Ramadhan

so i commit and push to my origin/github master, then i run "npm run deploy" again?

Thread Thread
 
mdgolammostafa profile image
Curious React Web Developer

yes

Collapse
 
mdgolammostafa profile image
Curious React Web Developer

just write a command like below -
npm run deploy