aboutsummaryrefslogtreecommitdiff
path: root/main.go
blob: 965f42667e91f231eb0999d2a51e5a499d9c6dc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
  "github.com/gin-gonic/gin"
  "github.com/gin-gonic/contrib/static"
  "os"
)

func main() {
  r := gin.New()
  r.Use(gin.Logger())

  r.Use(static.Serve("/",
    static.LocalFile("./../build", true)))

  r.Run(":" + os.Getenv("PORT"))
}