fix(.gitignore): remove server from ignored files to allow tracking
All checks were successful
Build Updates Server / build (push) Successful in 32s
Build Updates Server / build-docker (push) Successful in 1m39s

This commit is contained in:
lafay
2026-03-26 03:38:26 +08:00
parent 3ac1a2ccf5
commit e9a6b7a169
2 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,4 @@
# Build artifacts # Build artifacts
server
*.tar *.tar
updates/ updates/

18
cmd/server/main.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"log"
"net/http"
"expo-updates-server-go/internal/app"
)
func main() {
cfg := app.LoadConfig()
server := app.NewServer(cfg)
log.Printf("Starting updates server on :%s", cfg.Port)
if err := http.ListenAndServe(":"+cfg.Port, server.Routes()); err != nil {
log.Fatalf("Server failed: %v", err)
}
}