From b5e8ea91116c2853ca910c04864895c068397752 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Fri, 24 Apr 2026 04:56:29 -0500 Subject: [PATCH] fix(neuron-prod): set NEURON_DATA_DIR to point app to PVC database NeuronModule reads NEURON_DATA_DIR to construct the DB path as $NEURON_DATA_DIR/neuron.db. Without this env var the app falls back to a temp file, losing all data on pod restart. Also renamed the PVC file from neuron-prod.db to neuron.db to match. --- servers/legion/k8s/neuron-technologies/prod/configmap.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/legion/k8s/neuron-technologies/prod/configmap.yaml b/servers/legion/k8s/neuron-technologies/prod/configmap.yaml index f00147a..5b0ef05 100644 --- a/servers/legion/k8s/neuron-technologies/prod/configmap.yaml +++ b/servers/legion/k8s/neuron-technologies/prod/configmap.yaml @@ -5,7 +5,8 @@ metadata: namespace: neuron-prod data: SPRING_PROFILES_ACTIVE: "prod" - NEURON_DB_PATH: "/data/neuron-prod.db" + NEURON_DATA_DIR: "/data" + NEURON_DB_PATH: "/data/neuron.db" NEURON_STORAGE_PATH: "/data" SERVER_TOMCAT_ACCESSLOG_ENABLED: "true" # Prod: minimal surface — never expose internals