π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Setup new conf
Smaug67394d4e62de389c
diff --git a/.github/workflows/deploy_to_prod.yml b/.github/workflows/deploy_to_prod.ymlindex 7e935332..3f6a27b6 100755--- a/.github/workflows/deploy_to_prod.yml+++ b/.github/workflows/deploy_to_prod.yml@@ -19,34 +19,23 @@ jobs:- name: Setup bunuses: oven-sh/setup-bun@v1- - name: Install dependencies- run: |- cd frontend- bun install- cd ../backend- bun install+ - name: Set up Go+ uses: actions/setup-go@v5+ with:+ go-version: '1.24'- - name: Build backend+ - name: Build Go backendrun: |cd backend- bun run build+ go mod download+ GOOS=linux GOARCH=amd64 go build -o backend_app- name: Build frontendrun: |cd frontend+ bun install --productionbun run build- - name: Set up Go- uses: actions/setup-go@v5- with:- go-version: '1.22' # Change to your desired Go version-- - name: Build Go application- run: | # Build the Go application and name it cdn_app- cd cdn # Change to your Go application directory- go mod download- GOOS=linux GOARCH=amd64 go build -o cdn_app-- name: Set up SSHrun: |mkdir -p ~/.ssh@@ -64,23 +53,17 @@ jobs:- name: Create Archivesrun: |tar -czf frontend.tar.gz frontend/.output frontend/.env.production- tar -czf backend.tar.gz -C backend package.json bun.lockb -C dist .- tar -czf cdn.tar.gz cdn/cdn_app # Archive the Go application binary+ tar -czf backend.tar.gz backend/backend_app- name: Transfer Archivesrun: |scp -i deploy_key ecosystem.config.js ${SSH_USER}@"${INPUT_HOST}":"${INPUT_REMOTE}"scp -i deploy_key frontend.tar.gz ${SSH_USER}@"${INPUT_HOST}":"${INPUT_REMOTE}"scp -i deploy_key backend.tar.gz ${SSH_USER}@"${INPUT_HOST}":"${INPUT_REMOTE}"- scp -i deploy_key cdn.tar.gz ${SSH_USER}@"${INPUT_HOST}":"${INPUT_REMOTE}"- name: Extract Archives on Remoterun: |- 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: |- ssh -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "source ~/.bashrc && cd ${INPUT_REMOTE} && cd backend && bun install --production"+ ssh -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "cd ${INPUT_REMOTE} && tar -xzf frontend.tar.gz && tar -xzf backend.tar.gz && rm frontend.tar.gz backend.tar.gz"- name: Start applicationrun: |diff --git a/backend/config.toml b/backend/config.tomlindex 55c9d064..19121525 100644--- a/backend/config.toml+++ b/backend/config.toml@@ -1,4 +1,4 @@-Port = 3001+Port = 8201[Database]Driver = "mysql"diff --git a/ecosystem.config.js b/ecosystem.config.jsindex 01bfc80a..facd5824 100644--- a/ecosystem.config.js+++ b/ecosystem.config.js@@ -2,15 +2,10 @@ module.exports = {apps: [{name: 'alexandrie-backend',- cwd: './backend',- script: 'bun main.js',+ script: './al_backend',env: {- NODE_ENV: 'production',PORT: 8201,DOMAIN_CLIENT: 'https://alexandrie-hub.fr',- //DOMAIN_DASHBOARD: "https://dashboard.alexandrie-hub.fr",- FRONT_DOMAIN: 'alexandrie-hub.fr',- DB_NAME: 'alexandrie',},},{@@ -23,23 +18,9 @@ module.exports = {},},{- name: 'alexandrie-cdn',- cwd: './cdn',- script: './cdn_app',- env: {- NODE_ENV: 'production',- PORT: 8202,- DOMAIN_CLIENT: 'https://alexandrie-hub.fr',- },+ name: 'alexandrie-minio',+ cwd: '',+ script: 'minio server ./minio --console-address :9001 --address "localhost:9000"',},- /*{- name: "alexandrie-dashboard",- cwd: "./dashboard",- script: "bun .output/server/index.mjs",- env: {- NODE_ENV: "production",- PORT: 8202,- },- },*/],};diff --git a/frontend/.env.development b/frontend/.env.developmentindex ecdd20d5..4f9144a1 100644--- a/frontend/.env.development+++ b/frontend/.env.development@@ -1,2 +1,2 @@-VITE_BASE_API="http://localhost:8080"+VITE_BASE_API="http://localhost:8201"VITE_BASE_CDN="http://localhost:9000/alexandrie-uploads/"\ No newline at end of file