luke.b//blog

Idea for blog notifications: using a:visited to indicate whether a blog is new or has been read before. And sending an email out whenever blog content updates.

The :visited thing is obviously trivial but I’m a bit more uncertain about the email sending, especially as that means collecting email addresses of people.

First things first - I need to deploy a nginx server using my shiny new deployment system.

I take it there’s a docker image I can grab from somewhere.

Also, I think I should start with docker-compose instead of defaulting to it later on to save me some time in the long run.

This will also make it much easier to collectively deploy stuff.

The deployment process will become:

  • push some kind of update
  • rebuild and restart affected apps docker images

One slight difference is that all dependencies and configuration and shared files (e.g static web files) will need to be shared explicitly using Docker volumes.

For example, my blog is a statically generated Hugo site. Once the build step is complete, these files need to be available to the nginx server for hosting.

Ideally, each thing I deploy should be unaware when possible of is dependents. In this situation, the entire hugo blog shouldn’t “know” or “require” that it is being hosted using nginx. That way it can be used in other stacks I might want to use in the future.

The alternative to sharing static files between containers (more entangled, less separation) could be to run one nginx instance per app, but that seems unnecessary - really there should be flexibility to choose between static file hosting and redirecting web requests directly to the app.

I feel like this is a solid plan with some good first steps:

  • deploy an nginx using automated docker-compose.yml
  • mount generated files into nginx container
  • test that it works
  • switch to the new auto-deployed nginx

OK so I’ve done my daily exercise and had breakfast. All before 1pm, I know it’s impressive. What can I say, it’s the weekend.

I want to make a bit of progress on my grand plan to get everything deployed with individual git commits. I made a list yesterday which included deploying all apps, using docker for everything and also deploying my nginx config to keep my reverse proxy in-sync.

But then I had a thought - my reverse proxy can be deployed with docker, right? In theory anyway, this is perfectly doable and a lot safe/more predictable in terms of rebuilding everything from scratch if I ever needed to.

Time to force myself to disconnect from my laptop and read a book otherwise I just will not sleep.

and I found out recently that one of my friends is a blogger and she just emanates coolness but is quite shy. If you’re reading, hi!

I feel like doing these posts is letting me out of my shell a little bit. I’m suddenly feeling quite a bit more positive than I did before and it’s honestly so comforting to know that I can feel more like “me” if I just do the things that make me, “me”, you know?

i’m seriously considering lowercasing my entire website. this is a preview of what that would look like. i mean i could even use css text-transform: lowercase; or if i’m feeling shouty css text-transform: uppercase;

Wait. Can I inject javascript into this log? [yes i can, how about that](javascript:document.body.style.textTransform='uppercase’;throw ‘banana’;) [and now lower case](javascript:document.body.style.textTransform='lowercase’;throw ‘banana’;) [and now the default](javascript:document.body.style.textTransform='initial’;throw ‘banana’;)

My next blog post: “how to theme your website with 3 lines of markdown”

I really want to write a monthly blog on the music I’m listening to.

One day! shakes fist at calendar

This weekend I really need to give an update on Mission ‘me’. I’ve been journaling quite frequently so I can probably recap easily.

Ahhh writing feels good. So much to write, so little time.

My birthday is coming up and I think I might have ruined my own surprise pub-quiz by declaring that I don’t want one. Maybe I do though?

It’s the only thing to do with other people now somehow. Or at least it’s what everyone I know is doing.

I kind of just want to get drunk and play minecraft or cod or something.

page 22 of 27 after before