From c41aa10f152bdf1ea8897641c762e2cf3c64a9b6 Mon Sep 17 00:00:00 2001 From: David Zwart Date: Sun, 4 Feb 2024 22:32:08 +0100 Subject: [PATCH] fix: set env for linux service to trigger sqlite mode --- .../pi/fdm-monster-daemon/install-fdm-monster.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/modules/monsterpi/filesystem/home/pi/fdm-monster-daemon/install-fdm-monster.js b/src/modules/monsterpi/filesystem/home/pi/fdm-monster-daemon/install-fdm-monster.js index 4d5f8bc..78e434d 100644 --- a/src/modules/monsterpi/filesystem/home/pi/fdm-monster-daemon/install-fdm-monster.js +++ b/src/modules/monsterpi/filesystem/home/pi/fdm-monster-daemon/install-fdm-monster.js @@ -17,6 +17,20 @@ const svc = new Service({ script: join(rootPath, "dist/index.js"), nodeOptions: ["--harmony", "--max_old_space_size=4096"], workingDirectory: rootPath, + env: [ + { + name: "ENABLE_EXPERIMENTAL_TYPEORM", + value: "true", + }, + { + name: "DATABASE_PATH", + value: "./database", + }, + { + name: "DATABASE_FILE", + value: "fdm-monster.sqlite", + }, + ], }); svc.on("install", function () {