fix(.gitignore): remove server from ignored files to allow tracking
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,4 @@
|
|||||||
# Build artifacts
|
# Build artifacts
|
||||||
server
|
|
||||||
*.tar
|
*.tar
|
||||||
updates/
|
updates/
|
||||||
|
|
||||||
|
|||||||
18
cmd/server/main.go
Normal file
18
cmd/server/main.go
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user