Moondog, day 26 (1 Dec): getting ready to go live

Moondog, day 26 (1 Dec): getting ready to go live

A short day after a break: eight commits, all about getting the server ready to run somewhere other than my own machine.

The world goes in the box

The production server is an exported build, and the export only packs Godot resources plus what you list explicitly. The islands, the sea mask and the ship definitions are plain data files read at runtime, and none of them were listed. So an exported server started happily with no islands and no sea. The dev setup runs from source, which is why it never showed up. They're packed in now, and production gets the world tiles as well.

Checks that caught things

Building the production image runs the same checks as everything else, and they found two things:

  • Tree felling was missing from the client-server contract. ClientFellTileTree existed on both sides but was never added to the RPC contract, and the tile-trees source file wasn't in the list the check scans. Both are fixed.
  • Logging. Two plain prints in the tile trees broke the logging guard. In a container, Godot buffers stdout, so log lines have to go to stderr to show up when they happen.

The docs build tripped over a bare <seed> in the world generator page, which the docs framework read as an unclosed tag. It's quoted as code now.

The rest

The rest was the plumbing for a public home: the web apps and the client pointing at their real addresses, and tightening what is and isn't reachable from outside. Nothing exciting to show, but it's the step before other people can log in.