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 deploy config and remove old printed values

Smaug6739dff67ba8b442
diff --git a/.github/workflows/deploy_to_prod.yml b/.github/workflows/deploy_to_prod.yml
index 501c19a2..a237f7fe 100755
--- a/.github/workflows/deploy_to_prod.yml
+++ b/.github/workflows/deploy_to_prod.yml
@@ -59,10 +59,13 @@ jobs:
run: |
cat > .env.production <<EOF
NODE_ENV=production
+ GIN_MODE=release
+ BACKEND_PORT=8201
+ DOMAIN_CLIENT=https://alexandrie-hub.fr
+ COOKIE_DOMAIN=alexandrie-hub.fr
DATABASE_USER=${{ secrets.DATABASE_USER }}
DATABASE_PASSWORD="${{ secrets.DATABASE_PASSWORD }}"
JWT_SECRET=${{ secrets.JWT_SECRET }}
- BACKEND_PORT=8201
MINIO_ACCESSKEY=${{ secrets.MINIO_ACCESSKEY }}
MINIO_SECRETKEY=${{ secrets.MINIO_SECRETKEY }}
SMTP_HOST=${{ secrets.SMTP_HOST }}
diff --git a/backend/main.go b/backend/main.go
index c7d50d84..05c93416 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -14,9 +14,6 @@ func main() {
os.Exit(1)
}
fmt.Println("Starting server on port:", port)
- fmt.Println("Configuration:")
- fmt.Println("DOMAIN_CLIENT:", os.Getenv("DOMAIN_CLIENT"))
- fmt.Println("COOKIE_DOMAIN:", os.Getenv("COOKIE_DOMAIN"))
defer application.DB.Close()
server.Run(":" + fmt.Sprintf("%s", port))