aboutsummaryrefslogtreecommitdiffstats
path: root/karakeep-linux.sh
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-07-19 14:35:11 +0000
committerMohamed Bassem <me@mbassem.com>2025-07-19 14:35:48 +0000
commit2cce45b7ed04b819bf25fa8ac129f300e1469846 (patch)
tree8c5230d7044702398825d75c548f29dc311f0ce6 /karakeep-linux.sh
parent4fe541c422ad8481296bc988da8344c0725c997b (diff)
downloadkarakeep-2cce45b7ed04b819bf25fa8ac129f300e1469846.tar.zst
fix: Run workers in prod without tsx. Fixes #1673
Diffstat (limited to 'karakeep-linux.sh')
-rw-r--r--karakeep-linux.sh4
1 files changed, 3 insertions, 1 deletions
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