Finally Live
Today's goal is deploying and publishing all my journals.
Fixed the nginx issue, then had to run the migrations, but now it's working. I will probably have to automate the migrations somehow, maybe in the deploy pipeline?
Now to deploy the frontend.
Fixed a bunch of lint and build errors and finally managed to deploy it. Turns out I need to set up a subdomain for the keycloak, as it needs to be accessible from the frontend.
Took me HOURS to get keycloak to work, but it's finally up and running. Sweet! Time to test it.
Wrote an install script for the cli and fixed a small issue, but the api is returning 500 now. So close!
While testing, I found a bunch of bugs. Currently not working:
- content contains frontmatter
- fixed
- title not displaying
- fixed
- content not properly uploaded/linked
- seems like the url is set to localhost
- ill have to set up the subdomain and update the config
- done
It's finally done! My first entry is published! So stoked. Time to upload the rest. I'll write a simple bash script that will go through my diary repo and upload everything.
Cursor spit out the script in a few minutes and I succesfully submitted all entries.
It seems like the content upload works well, but the video isn't rendering properly. That should be a simple frontend fix.
A bigger problem that I have is that the titles are missing for all past entries because I only started writing them recently. Up until now, they were AI generated, and they were pretty shit, honestly. I should probably just copy them over now somehow, but look to redo them by hand sometime later. It will be tedious, but it should be beneficial in the long run. Maybe I can train the AI not to spit out absolute shit that way.
I copied over the old names for the codeinteractive entries. I'll leave them be for now. I also went ahead and manually added the titles for the devjourney entries, as those didn't exist at all. Wasn't too bad.
TODO:
- Finish deployment pipeline
- Refactor and clean up CLI tool