Deploy This?

So I’m still just getting warmed up with some of these new tools and am all thumbs. I recognize the criticality of getting familiarized with the blogging process and making sure that my content is being version controlled and published appropriately; however, I’m also trying to avoid getting wrested away from my defined focus with the many tangential rabbit holes littering my way on this journey.

Github Deployments

My first aim was to get the Hexo deployment process configured to post directly to my Github account. In planning for this, I became aware of something called Github Pages, which is probably not new, I’ve just become hopelessly out of touch with what’s going on in the modern development world. This is a free space for me to post a web page or site using my own Github account. Since I’ve typically viewed Github as a storage repository for verion control, I also figured I would want to deploy my Hexo source files there, while I would deploy my generated files in the Github Pages location. Also, since I have my own web hosting with a private domain name, I wanted to configure this process to deploy there, as well. From a quick review of the docs, it seems that I can do exactly what I want… piece of cake!

Well, in order to deploy both my generated files and my source files to Github Pages and a supporting repo, I need to use Github Actions to make this work. I took a stab at the instructions found here to get this working, but had issue right out of the gate. As I tried to read more about Github Actions, i started feeling like I was slipping into my first rabbit hole and decided, rather quickly, that maybe this a necessary route, for now.

Hexo Deployment Plug-ins

There is also an option for One-Command Deployments for Hexo that has different plug-ins available to serve your needs. My first need is to get my stuff pushed to Github and for that, I can use a plug-in called hexo-deployer-git. The only caveat with going this route is that it will only deploy my generated files to my Github Pages location, but not allow me to push the source to a standard repo. Although this is not my perfect world, I’m going to go ahead with this and just back up my source files manually using the standard git processes, which I need practice with anyway. I went ahead with the steps outlined and installed this plug-in, updated my _config.yml file with my Github details, then ran hexo clean && hexo deploy to generate my site and push to my Github Page. After verifying with between Github and VS Code that this was what I wanted, my Hex Blog is live on amen2that.github.io/!

Now that I’ve gotten my content on my Github page, I think about how I didn’t even know what that was until this week and so clearly, it isn’t what I set out to do. What I really want is to get this blog posted on my private domain. Fortunately, there’s a plug-in for that too called hexo-deployer-sftp. This, too, seems pretty straight forward, but I notice a warning on it’s github repo just warning you that it will delete everything off your server to match what you are deploying, which isn’t what i want to do. I figure I could test this and figure out how to make it work, but obviously my first step will be to back up what’s out there, thengo to work with tests… these fucking rabbits man!

I’m going to back up a second here… why do i need to deploy using Hexo? I can use VS Code to SFTP whatever files I want to my site really, really easily, using a process I’m already familiar with… SFTP!!! I mean… what the hell am I doing here. So the new steps are going to be to simply generate my pages using hexo generate, then just push them the old fashioned way from VS Code using SFTP. I mean… WTAF.

Well Here We Are!

It looks like I’ve finally gotten around to getting my blog launched. It seems that I’ve been this far before, but it’s really much harder to maintain and develop a blog vs. just getting it started. Hopefully, this time will be a charm.

What’s The Plan?

My plan will be to focus much more on documenting the things I’m learning to help me organize and better remember all these new things I discover and learn, and if I don’t rememeber it, which we know I won’t, I’ll have something here i can refer back to and jog my memory.

I know that there are many things on my list to learn, so my entries my be a bit disjointed in the topics that are being logged, at least initially, though my focus will be around front-end development, starting with HTML, CSS & JavaScript. It seems like I’ve been doing this stuff long enough that I would need to start there, but fundamentals are pretty critical and I know that there are some serious gaps in my knowledge.

Stick To The Plan!

But even at this early onset of my new endeavor, I’m going to go off track and spend a little time on something else called Markdown, which is a document formatting mark-up of some kind that I’ve only very recently even heard of. I’ll be looking to this handy guide on Markdown basic syntax for starters. I’ll also be learning a bit about this blogging tool, Hexo, which I just discovered today. I’m going with it due to its apparent simplicity and apparent hackability… hopefully my instinct is true on this choice! Lastly, I will (once again) be delving into GitHub since Hexo is integrated into it by default and, frankly, I just really, really need to get my head out of my ass and learn this one.

OK, that’s all for now. Cheers!