Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After deploying a Github page, how do you update it with changes?

I've deployed a project as a Github Page using npm run deploy. Now, I have made new changes to my project on my master branch and pushed them to the remote master branch. However, doing so does not seem to update my Github Page. What step(s) am I missing? Do I need to re-run npm run deploy?

like image 641
Eric Avatar asked Nov 14 '20 22:11

Eric


1 Answers

After pushing your code to master branch, run npm run deploy. This will make a new commit and push to your gh-pages branch that your GitHub Pages app running on. Then refresh your page. If you don't see any changes, wait a couple minutes and refresh it again.

like image 100
Murat Ogulcan Sahin Avatar answered Oct 06 '22 00:10

Murat Ogulcan Sahin