aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 59ccfa5..9bae176 100644
--- a/main.go
+++ b/main.go
@@ -1,6 +1,7 @@
1package main 1package main
2 2
3import ( 3import (
4 "fmt"
4 "log" 5 "log"
5 "os" 6 "os"
6 7
@@ -23,5 +24,5 @@ func main() {
23 database.ConnectDB() 24 database.ConnectDB()
24 router.Use(static.Serve("/", static.LocalFile("./frontend/dist", true))) 25 router.Use(static.Serve("/", static.LocalFile("./frontend/dist", true)))
25 routes.InitRoutes(router) 26 routes.InitRoutes(router)
26 router.Run(":4000") 27 router.Run(fmt.Sprintf(":%s", os.Getenv("PORT")))
27} 28}