It took me a while to finish the deployment to “production” which is my github repo.
I would like to document what I was doing here so that I can refer to here later when I need to deploy again.
First of all, I swear there is a cache issue, every time I tried to run it locally, it is running as how I expected, but when I push the changes out to the github pages, it is still the older version, which has been driving me bananas. Then I noticed that, there is something called [taxonomies]
. When I was trying out different ways I can possibly show the projects, I added the project to it, project = "projects"
, then I just totally forgot about it. After I commented that out, things seems to be more consistant after that.
So What is a taxonomy?
Hugo includes support for user-defined groupings of content called taxonomies. Taxonomies are classifications of logical relationships between content.
You can find more here.
So no wonder, I kept seeing projects as a folder; which I totally don’t want that, I just want a page to show the list of projects or things I am working on. For the longest time, it has been always guiding to the stupid folder, lol, now it is finally pointing to the page I want.
This whole thing tells you that, you need to go back to the documentation provided by the officals always. The answers are always there.
To successfully deploy, you need to start clean, always keep the deployment folder clean, then remember to build the hugo project, and push the items into prod site, then setup the workflow in github, and push everything out. The workflow on github will automatically run the build and publish. BUT every time, you need to keep everything clean.
There are times that everything is going to fail, keep going back to the code, and keep in mind you have to have to have to keep the “prod” section clean at all times.
It took me about 6 hours to fix the things I wanted to fix. Hopefully, next time, it will be more smooth!
I have been thinking about this, and working on this for a while, I always wanted to wait for things to be perfect to publish it, but there is honestly no point, right? No product is perfect, even a developed product is not perfect, if waiting for perfections, then nothing will get done, I guess that’s why nothing is getting done. Need to change the mindset now.
There we go. Goodnight!