DEV Community

Discussion on: How to deploy React App to GitHub Pages

Collapse
yuribenjamin profile image
Ibrahim Ragab Author

did you try to delete GH-page branch && build directory, and deploying the app again? if not try this

Collapse
legyta profile image
Ligita Montvilaite

Hey - does this mean, everytime you update something on the page, we need to Delete Gh-page branch && delete build directory folder, and basically deploy again?

Is there no automatic update happening? (i.e. like, when deployed on netlify or smhtg.) ? Thanks!

Thread Thread
yuribenjamin profile image
Ibrahim Ragab Author

to update run npm run deploy after each update

Thread Thread
omerhamid profile image
Omer

as you said committing and deploying works fine but you have to wait for the change to take an effect on the live link ( and sometimes the repo itself)