Tasks goals: auto metrics (tasks.goals.metric_key/metric_detail/metric_computed_at, tasks.metric_sources cache). €10k/month goal gets a live progress bar: Revolut recurring income (excl. Zorgtoeslag/Joint) computed on page load + trailing-12m paid Moneybird invoices / 12 cached by a daily goal-metrics user timer; stacked bar with %, amount vs target, salary/side-income breakdown, last-updated
Some checks failed
Deploy production / deploy (push) Failing after 1m14s
Some checks failed
Deploy production / deploy (push) Failing after 1m14s
This commit is contained in:
13
deploy/systemd/goal-metrics.service
Normal file
13
deploy/systemd/goal-metrics.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Goal metrics refresh (Moneybird side income -> tasks.metric_sources, auto goals -> tasks.goals)
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# A checkout of stan/website on main (needs node_modules for postgres.js).
|
||||
WorkingDirectory=%h/dev/website-goalbar
|
||||
# DB_URL (app role), MONEYBIRD_API_TOKEN, MONEYBIRD_ADMINISTRATION_ID; mode 600, never committed.
|
||||
EnvironmentFile=%h/.config/goal-metrics.env
|
||||
ExecStart=/usr/bin/bun scripts/goal-metrics.ts
|
||||
TimeoutStartSec=300
|
||||
Reference in New Issue
Block a user