deploy: add mcpedia-web.service systemd unit (port 4016)
CI / typecheck + build (turbo) (push) Canceled after 0s

Serves the Next.js web app on :4016 via bun; wired to
wiki.asepharyana.my.id through the existing Caddy proxy snippet.
EnvironmentFile loads DATABASE_URL/EMBED_*/etc from repo .env.
This commit is contained in:
asepharyana
2026-08-19 23:21:59 +07:00
parent 8790a4f65a
commit 2fac2b5230
+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=MCPedia Web (Next.js docs UI + search)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/home/code/mcpedia
# Loads DATABASE_URL, EMBED_*, REDIS_*, WEBHOOK_SECRET from the repo .env.
# CONTENT_ROOT defaults to /home/code/mcpedia/content when unset.
Environment=PORT=4016
Environment=NODE_ENV=production
EnvironmentFile=/home/code/mcpedia/.env
ExecStart=/home/code/.bun/bin/bun run --cwd apps/web start
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target