ローカルで育てて、静的に届ける / Grown Locally, Served Statically

気づけば、日記を書くのが好きかもしれない。ネットとかブログとかパソコンよりずっと前——中学生のころ、中二病まっただ中で、わざわざ日記帳を買っては手書きで言葉をぶつけていた。中坊が何を書いていたかは皆さんの想像にお任せするが、ひとつだけ覚えているのは「今の環境から脱出して、日本で暮らしたい」という願い。あの頃はアニメやマンガ経由でしか日本を知らなかったのに、その夢を実際に叶えた今、言えるのはただ一つ——現実は、フィクション以上に大変で、そして素晴らしい。

Duplo and brekkie

そんな原点があるから、こういうのブログも日記の延長にある。紙とペンが、画面とキーボードに置き換わっただけ。

道のりは長い。約20年前は穴だらけのCGIから始まり、MovableTypeをいじり、やがてWordPressへ。気づけば国内のホスティングに何年続いたのか分からないほど円を貢ぎつづけていた。ドメイン代は喜んで払うが、年間のホスティング料はだんだんバカらしく感じてきた。

そこで惹かれたのが「CMSは手元に、公開は静的で」というやり方。現在のワークフローはこうだ、

  1. LocalWP で WordPress をローカル管理
  2. Simply Static(WPプラグイン)で静的ページに書き出し
  3. Google Firebase にデプロイ
  4. Git にすべてコミット

手順は多い。でもこの儀式が妙に気持ちいい。結局、自分はコマンドラインの人間なのだと再確認する。なにしろ昔、IBM PC/AT で dir/w を3秒おきに叩いては Sierra OnLine のアドベンチャーゲームに青春を捧げていた世代だから。

紙の日記も、ローカルのCMSも、「自分のペースで考えを育てる」場所。書くことはローカルで熟成させ、読む人には静的に軽やかに届ける— その距離感が今の自分にちょうどいいかもしれない。


I might be a diary person after all. Long before the Internets, blogs and computers, back in middle school—deep in my melodramatic, “edgy” phase—I bought diaries to hurl words onto paper. What does a middle school boy write about? I’ll leave that to your imagination. The one line I do remember: escape this environment and go live in Japan. Back then my Japan was built from anime and manga; having actually made the move, I can say this much—the real thing is even tougher, and even better.

Maybe that’s why today’s blog is just a the same diary with different tools. Paper and pen became a screen and a keyboard.

The road here was long. About twenty years ago I started with some very security-compromised CGI, tinkered with MovableType, and eventually found WordPress. Along the way I paid a local hosting provider zillions of yen for who-knows-how-many years. I’ll gladly pay for my own domain, but annual hosting fees started to feel a bit silly.

So I fell for this idea: keep the CMS local, publish statically. Nurture drafts at home; release something lean and fast to the wild.

Here’s the current setup:

  1. Manage WordPress locally with LocalWP
  2. Export static pages via Simply Static
  3. Deploy on Google Firebase
  4. Commit everything to Git

It’s a lot of steps, but the ritual is strangely satisfying. I guess I’m a command-line person at heart; I grew up on an IBM PC/AT, hammering dir/w every three seconds, while pandering my way around Sierra OnLine adventure grames.

Both the paper diary and today’s digital version are places to think at my own pace. Develop ideas locally; deliver them lightly as static pages. For now, that distance feels just right for me.