Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix: update bun installation path and ensure proper environment setup

Smaug673967e4d35c7260
diff --git a/.github/workflows/deploy_to_prod.yml b/.github/workflows/deploy_to_prod.yml
index 80e27815..46ba15ee 100755
--- a/.github/workflows/deploy_to_prod.yml
+++ b/.github/workflows/deploy_to_prod.yml
@@ -106,6 +106,10 @@ jobs:
set -e
rm -rf ${REMOTE_PATH}/frontend/.output/server/node_modules
cd ${REMOTE_PATH}/frontend/.output/server
+
+ export BUN_INSTALL=\"/home/deploy/.bun\"
+ export PATH=\"\$BUN_INSTALL/bin:\$PATH\"
+
bun install --production
"
# -------------------------
@@ -120,6 +124,10 @@ jobs:
set -o allexport
source .env.production
set +o allexport
+
+ export BUN_INSTALL=\"/home/deploy/.bun\"
+ export PATH=\"\$BUN_INSTALL/bin:\$PATH\"
+
# Reload or start the application
pm2 delete ecosystem.config.js || true
pm2 start ecosystem.config.js