I have been working on my Portfolio site ✨ which is a static site built using React, deployed on GH pages. I have noticed a bit of lag on the act of deployment consistently. I never kept track of time required for updates to be seen- though I plan to attempt this now. This time it seems that despite the repo responding to updates (new code in the repo) and deployments being recorded in the repository's deployment activity log, the actual site is unchanged, 20 hours later.
I was researching this issue trying to figure it out and found out that there is a site where you can check on GitHub's status and read through incident reports. I thought that was very cool.
I also found this Quora article which led me to realize that maybe GH wasn't the problem despite the delay from the Jekyl deployment. The issue, I discovered was that I forgot how deployment on GH fundamentally works (lol) and had incorrectly assumed that it was happening automatically.
There were deployments being logged every time I merged my work into my deployed branch and no errors were noted (except minor dependency warnings). I had totally forgotten about optimizing the build for prod.
Here are the commands that I had forgotton:
deploy via command line
yarn run build
yarn run deploy
To be honest, certain things are still unclear about the most proper deployment procedures and if anyone has found good articles that would help, please share!! 🙂
Top comments (0)