operations

๐Ÿšข Deployment

How wiki.moincraft.de is built and published, plus the runtime deployment boundary for Moincraft services.

Wiki publication path#

cd /home/mc/wiki
npm run wiki:content
npm run wiki:build
npm run wiki:deploy

wiki:deploy runs verification and then scripts/publish-wiki.mjs from the top-level wiki source root.

Publish safety#

The publish script:

  • defaults source to public/wiki;
  • defaults deploy root to /var/www/moincraft-wiki;
  • rejects unsafe deploy roots such as /, /var, /var/www, /home, and /home/mc;
  • writes release directories under releases/;
  • atomically updates the current symlink;
  • prunes old releases.

Do not hand-edit public/wiki or /var/www/moincraft-wiki/current; make source changes in /home/mc/wiki and rebuild.

Runtime service deployment boundary#

Moincraft live service commands are separate from wiki publication:

cd /home/mc/moincraft
./launch_all.sh
./verify_stack.sh
npm run pm2:start

These commands mutate running services and should be used only for operational tasks.

Sources: wiki/package.json, wiki/scripts/publish-wiki.mjs, moincraft/package.json, moincraft/docs/deployment-guide.md.