feat: add supervisor prototype with embedded frontend

This commit is contained in:
root
2026-03-09 19:15:53 +01:00
parent 96c4ce1697
commit 84de557052
56 changed files with 4044 additions and 10 deletions

27
cmd/supervisor/main.go Normal file
View File

@ -0,0 +1,27 @@
package main
import (
"context"
"log"
"os/signal"
"syscall"
"supervisor/internal/app"
"supervisor/internal/config"
)
func main() {
cfg := config.Load()
application, err := app.New(cfg)
if err != nil {
log.Fatalf("failed to initialize app: %v", err)
}
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer stop()
if err := application.Run(ctx); err != nil {
log.Fatalf("application error: %v", err)
}
}