From 2cce45b7ed04b819bf25fa8ac129f300e1469846 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 19 Jul 2025 14:35:11 +0000 Subject: fix: Run workers in prod without tsx. Fixes #1673 --- karakeep-linux.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'karakeep-linux.sh') diff --git a/karakeep-linux.sh b/karakeep-linux.sh index 073c3908..545e0219 100644 --- a/karakeep-linux.sh +++ b/karakeep-linux.sh @@ -229,6 +229,7 @@ install_karakeep() { $shh pnpm build cd "$APP_DIR"/workers $shh pnpm i --frozen-lockfile + $shh pnpm build cd "$APP_DIR"/cli $shh pnpm i --frozen-lockfile $shh pnpm build @@ -342,7 +343,7 @@ Group=karakeep Restart=always EnvironmentFile=${ENV_FILE} WorkingDirectory=${APP_DIR}/workers -ExecStart=/usr/bin/pnpm run start:prod +ExecStart=/usr/bin/node dist/index.mjs StandardOutput=append:${LOG_DIR}/karakeep-workers.log StandardError=append:${LOG_DIR}/karakeep-workers.log TimeoutStopSec=5 @@ -438,6 +439,7 @@ update_karakeep() { cd "$APP_DIR"/web && $shh pnpm i --frozen-lockfile $shh pnpm build cd "$APP_DIR"/workers && $shh pnpm i --frozen-lockfile + $shh pnpm build cd "$APP_DIR"/cli && $shh pnpm i --frozen-lockfile $shh pnpm build cd "$INSTALL_DIR"/packages/db && $shh pnpm migrate -- cgit v1.2.3-70-g09d2