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 backend dir

Smaug6739f87e33cf492f
diff --git a/.github/workflows/deploy_to_prod.yml b/.github/workflows/deploy_to_prod.yml
index 380b6233..cf2474ad 100755
--- a/.github/workflows/deploy_to_prod.yml
+++ b/.github/workflows/deploy_to_prod.yml
@@ -76,7 +76,7 @@ jobs:
- name: Extract Archives on Remote
run: |
- ssh -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "cd ${INPUT_REMOTE} && tar -xzf frontend.tar.gz && tar -xzf backend.tar.gz && tar -xzf cdn.tar.gz && rm frontend.tar.gz backend.tar.gz cdn.tar.gz"
+ ssh -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "cd ${INPUT_REMOTE} && tar -xzf frontend.tar.gz && mkdir -p backend && tar -xzf backend.tar.gz -C backend && tar -xzf cdn.tar.gz && rm frontend.tar.gz backend.tar.gz cdn.tar.gz"
- name: Install dependencies for backend
run: |
diff --git a/ecosystem.config.js b/ecosystem.config.js
index 4d9e8b21..515c6378 100644
--- a/ecosystem.config.js
+++ b/ecosystem.config.js
@@ -3,7 +3,7 @@ module.exports = {
{
name: 'alexandrie-backend',
cwd: './backend',
- script: 'bun dist/main.js',
+ script: 'bun main.js',
env: {
NODE_ENV: 'production',
PORT: 8201,