move to port 8080

This commit is contained in:
Gianni Carafa
2023-11-02 04:42:41 +01:00
parent 2c9a58fb19
commit fc9dc0df27
7 changed files with 21 additions and 108 deletions

View File

@@ -19,13 +19,12 @@ func main() {
)
app.Get("/", handlers.Form)
app.Get("debug/*", handlers.Debug)
app.Get("/*", handlers.ProxySite)
port := os.Getenv("PORT")
if os.Getenv("PORT") == "" {
port = "2000"
port = "8080"
}
log.Fatal(app.Listen(":" + port))