The Cooler TYOMA.COOL
Filed under: Personal
Originally posted on my old blog.Lads, I've done it! I finally found a better workflow for updating my friggin website! Rejoice, REJOICE!!
Here's a
writeup of what I did to set it all up! May be useful if you wanna streamline things a bit, especially if you're
sort of an amateur (like me) and used to just drag-n-drop files onto your site dashboard.
Why move, dummy??
As y'all may well know, tyoma.cool used to be hosted on good ol' Neocities, but I've been getting a little frustrated with it. The main reason being... the friggin' site is poorly maintained!! I don't mean any disrespect to Kyle, because Neocities will always hold a special place in my heart for what it represents and the freedom it gave tons of random websurfers. That being said, there are a ton of annoying things the platform does, including:
- Secretly shadowbanning sites that get blocked by at least 25 users
-
Stripping all page URLs of
.htmlwith no way to opt out - Site thumbnails being generated incorrectly
Those are just bugs and anti-features though. You wanna know the REAL reason I chose to move?
Social features and engagement
One of the reasons I adhered to the webdev grindset was because modern day social media gives me the ick. Whoa, nobody's heard that before! Yeah, well, the problem is that most new "alternatives" still integrate alot of problematic features social media has introduced. Ladies and gentlemen, I present to you the FEED, FOLLOWER COUNT, AND VIEW COUNTS!!
Now, out of context, I have very little problem with these things. I appreciate the ability to follow other sites and see who follows you. I like being able to see a feed of recent site updates (especially for those who don't have a dedicated RSS feed). View counts... ehh, well, I never saw the point, but I'm sure there's a use case for them, even if it's just curiosity. All that said, I already know how engagement metrics (likes, followers, etc.) can mess up our brains, so finding them in a place specifically criticizes social media is a little counter-intuitive. I PERSONALLY know I have a problem with these things, and as a result, I've had to download the SocialFocus browser extension to reduce my social media usage. Unfortunately, since these are kinda baked into Neocities right on the front page, I know for a fact it's reduced my time spent coding and increased my time spent flipping through random websites. (Which is fun, but lacks intention and wastes my time!!)
As for the feed... oh, the feed. I've mainly used it to leave brief comments on other people's sites, which is nice when they don't have a guestbook or contact email on their page. I also occasionally will post a brief update about the future of my site... but it kinda makes you think, wouldn't this be more useful if I just put it on my, y'know, website? Not everyone who comes to my site is a Neocities user, so they're essentially in the dark until the RSS feed updates. It's just another way to waste your time not coding. It gets especially weird when I see people using the feed like a typical social media feed, talking about their lunch or how school was. I don't follow any users who do this (anymore) but it was weird to see status updates as if I was on Twitter or something.
The biggest factor in all of this, however, is the amount of drama that seems to crop up in the Neocities community. Suboptimalism did a great writeup on the big Yesterweb fallout, and their documentation of Neocities features has enlightened me of weird "incidents" that happened between other users. I've even seen some weird crap play out on my feed! One of my favorite webmasters got death threats commented on their feed, another seemed to be having a weird fight between them and a controversial clique of webmasters, and eventually? I really truly started seeing vagueposting. What is this, Twitter?! I have nothing against the greater community, but I am sooooo not in the mood to be seeing more stuff like this anytime soon.
Introducing: Nekoweb!
I ended up choosing Nekoweb as my new web host because... well, I've been a fan of Dimden's projects for a while now, honestly! However, I initially started with sludge factory on there because I was hesitant about leaving Neocities. Perhaps it was out of nostalgia's sake? In any case, I ended up changing my mind after seeing how the site has evolved since February of this year. This stuff was pretty convincing:
- Better built-in code editor with Emmet and CSS prettification
- FTP support
- No file type limits
- Cheaper + more donor perks
- Active maintenance with new features still being added
- Miscellaneous cuteness (site design, multiplayer cursors, custom siteboxes)
- None of the previous issues I mentioned with Neocities!!!
Luckily, it wasn't too hard to setup the move! I just exported my Neocities site as a .zip and was able to import it to my Nekoweb account through the dashboard.
...Iiiiiis what I would say if I didn't already have a site active on there. I couldn't find any info on whether importing a .zip file would just drop it in the root folder or if I could choose what folder my site files go into, so I didn't wanna risk jumbling everything up. Instead, I just connected over FTP using FileZilla using the classic drag-n-drop method.
Once that
was all set, I hopped onto the Nekoweb Patreon and connected it to my Nekoweb account so I could get donator perks. At
this point, it was just a matter of making the separate folders for both sites, connecting my custom domains, and
setting up my Neocities page so it redirects to Nekoweb. For those who don't know how to do this, I just added this
little snippet to the <head> section of my index.html:
<meta http-equiv="Refresh" content="0; URL=https://tyoma.cool/">
Actually optimizing the workflow
Sooo initially I was going to use NekoGit to handle version control, but every
time I try to use it, I end up getting an error message :^( Instead, I went ahead and decided to store my code over on
Github and deploy it with the help of deploy2nekoweb!!!
If you are like
me, you're gonna be a little scared of Git, but don't worry it can't hurt you. I use
Git Bash to handle setting up the repo, but you can also use
Github Desktop if you really prefer using a
GUI over the terminal.
(This is where I would explain how to do basic things like intialize a repository and whatnot... but I don't feel like it. Sorry...)
As for deploying to Nekoweb, we're gonna need to setup a Github Action and make a few tweaks. The deploy2nekoweb documentation is a bit outdated (I think) on how to get your cookie. In addition, I kept running into an error about running out of disk space when I ran the action. I'll give a little step-by-step guide on how I did this. (Note: This may not be the PROPER way to do it, and if it's not, tell me! For now though, this works the way I need it to.)
- While viewing your Github repo on the website, click the Actions tab.
- Select New workflow, then set up a workflow yourself → on the following page.
- Copy and paste the following code from the deploy2nekoweb documentation into your main.yml file:
- In the Marketplace tab to the right of the text editor, search for "Disk Space Reclaimer" and select the one by "insightsengineering".
-
Copy and paste the provided code snippet into your
main.ymlfile directly below thesteps:section. Your code should look something like this by the time you're done: -
Replace the
# optional, default is truecomments withtrue. (I don't think this is required, but I didn't want to make the Github editor angry.) -
Follow the information in the deploy2nekoweb documentationto configure
your
nekoweb-folderanddirectoryvariable as well as your Secrets and Variables for your API key. - To get your cookie, login to Nekoweb on your browser of choice and open the Developer Tools.
-
On Firefox, click the Storage tab (or Application tab if you're on Chrome),
find the Cookies section, select
https://nekoweb.org, double-click the value fortoken, then copy the value. - Back on Github, set your
NEKOWEB_COOKIEsecret to the cookie value you just copied. - Commit your changes to
main.yml.
on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: deploy2nekoweb
steps:
- name: Checkout
uses: actions/checkout@v4
# your build step here
- name: deploy2nekoweb
uses: deploy2nekoweb/deploy2nekoweb@v4
with:
nekoweb-api-key: ${{ secrets.NEKOWEB_API_KEY }}
nekoweb-cookie: ${{ secrets.NEKOWEB_COOKIE }}
nekoweb-folder: 'site'
directory: 'public'
on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: deploy2nekoweb
steps:
- name: Disk Space Reclaimer
# You may pin to the exact commit or the version.
# uses: insightsengineering/disk-space-reclaimer@124df9d297f0327c676943bb718a894af8d3897f
uses: insightsengineering/disk-space-reclaimer@v1.1.0
with:
# Remove Android runtime
android: # optional, default is true
# Remove .NET runtime
dotnet: # optional, default is true
# Remove Haskell runtime
haskell: # optional, default is true
# Remove large packages
large-packages: # optional, default is true
# Remove image tool cache
tools-cache: # optional, default is true
# Remove swap storage
swap-storage: # optional, default is true
# Remove Docker images
docker-images: # optional, default is true
- name: Checkout
uses: actions/checkout@v4
# your build step here
- name: deploy2nekoweb
uses: deploy2nekoweb/deploy2nekoweb@v4
with:
nekoweb-api-key: ${{ secrets.NEKOWEB_API_KEY }}
nekoweb-cookie: ${{ secrets.NEKOWEB_COOKIE }}
nekoweb-folder: 'site'
directory: 'public'
At this point, the workflow should run on its own. It should complete in around 5-6 minutes, and you can check on the workflow to see if it completed successfully. If it did, then you're in business! From now on, whenever you push a new change to the main branch of your repo, it should update your site on Nekoweb as well.
SUBHANALLAH
So yeah, that's how I've set things up for myself now! I had switched to Phoenix Code for a bit there, but I decided to hop back over to VSCodium since it has built-in Git support to make my life easier. So far, just these few changes have made my life A LOT easier and it's been so much more fun to work on my site! Boy, what automation can do for ya, huh?
Well that's all! See y'all on the flipside!!