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 port

Smaug673990f90c8ff4ef
diff --git a/backend/main.go b/backend/main.go
index b5d2b4f0..d5f07ca2 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -1,11 +1,13 @@
package main
-import "alexandrie/server"
+import (
+ "alexandrie/server"
+ "fmt"
+)
func main() {
server, application := server.SetupServer()
defer application.DB.Close()
- // Démarrer le serveur sur le port 8080
- server.Run("localhost:8080")
+ server.Run("localhost:" + fmt.Sprintf("%d", application.Config.Port))
}