From b5fdb94246c441e6883a7d30165c20ac8afc656f Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 28 Apr 2025 18:46:45 -0400 Subject: [PATCH] karakeep: add cli and mcp build commands (#4112) - cli has been missing - mcp is new as of 0.24.0 --- ct/karakeep.sh | 9 +++++++-- install/karakeep-install.sh | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ct/karakeep.sh b/ct/karakeep.sh index 5461fb7ad..c358f30e4 100644 --- a/ct/karakeep.sh +++ b/ct/karakeep.sh @@ -54,10 +54,15 @@ function update_script() { mv karakeep-"${RELEASE}" /opt/karakeep cd /opt/karakeep/apps/web $STD pnpm install --frozen-lockfile - $STD pnpm exec next build --experimental-build-mode compile - cp -r /opt/karakeep/apps/web/.next/standalone/apps/web/server.js /opt/karakeep/apps/web + $STD pnpm build cd /opt/karakeep/apps/workers $STD pnpm install --frozen-lockfile + cd /opt/karakeep/apps/cli + $STD pnpm install --frozen-lockfile + $STD pnpm build + cd /opt/karakeep/apps/mcp + $STD pnpm install --frozen-lockfile + $STD pnpm build export DATA_DIR=/opt/karakeep_data cd /opt/karakeep/packages/db $STD pnpm migrate diff --git a/install/karakeep-install.sh b/install/karakeep-install.sh index 073bacba6..a6c22a699 100644 --- a/install/karakeep-install.sh +++ b/install/karakeep-install.sh @@ -71,10 +71,15 @@ export NEXT_TELEMETRY_DISABLED=1 export CI="true" cd /opt/karakeep/apps/web $STD pnpm install --frozen-lockfile -$STD pnpm exec next build --experimental-build-mode compile -cp -r /opt/karakeep/apps/web/.next/standalone/apps/web/server.js /opt/karakeep/apps/web +$STD pnpm build cd /opt/karakeep/apps/workers $STD pnpm install --frozen-lockfile +cd /opt/karakeep/apps/cli +$STD pnpm install --frozen-lockfile +$STD pnpm build +cd /opt/karakeep/apps/mcp +$STD pnpm install --frozen-lockfile +$STD pnpm build export DATA_DIR=/opt/karakeep_data karakeep_SECRET=$(openssl rand -base64 36 | cut -c1-24)