Files
flowsight/deploy/flowsight.service
asepharyana 21e8568108
CI / go test + web typecheck (push) Canceled after 0s
CI / build + deploy (Nix) — flowsight (push) Canceled after 0s
feat: CI + Nix deploy + prod sectors-hackaton.asepharyana.my.id
- Backend serve web dist (WEB_DIST_DIR + SPA fallback, /api 404 JSON)
- flake.nix: single flowsight derivation (go 1.25 + pnpm build)
- deploy/flowsight.service: systemd on :4022 via bws-exec
- .github/workflows/ci.yml: go test + tsc gate, nix build, attic, SSH deploy
2026-09-15 14:45:23 +07:00

26 lines
969 B
Desktop File

[Unit]
Description=FlowSight — Sectors hackathon screener (Go API + SolidJS web, single service)
After=network-online.target nix-daemon.service
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/var/lib/flowsight
# Secrets dari Bitwarden Secrets Manager (project flowsight):
# flowsight_sectors_api_key -> SECTORS_API_KEY
# flowsight_llm_api_key -> LLM_API_KEY
# flowsight_llm_base_url -> LLM_BASE_URL
# flowsight_llm_model_triage/synth -> LLM_MODEL_TRIAGE/SYNTH
# WEB_DIST_DIR menunjuk ke dist frontend di store path aktif (dibuat saat deploy).
Environment=PORT=4022
Environment=DB_PATH=/var/lib/flowsight/data/flowsight.db
Environment=WEB_DIST_DIR=/nix/var/nix/profiles/flowsight/share/flowsight-web/dist
ExecStart=/usr/local/bin/bws-exec flowsight --project ca75de0f-058b-4a56-9073-b4c600572817 -- /nix/var/nix/profiles/flowsight/bin/flowsight
Restart=always
RestartSec=3
User=code
Group=code
[Install]
WantedBy=multi-user.target