Files
fnx_web/main.go
2017-11-10 12:39:55 +01:00

26 lines
508 B
Go

package main
import (
"net/http"
web "fornaxian.com/pixeldrain-web/init"
"fornaxian.com/pixeldrain-web/log"
"github.com/julienschmidt/httprouter"
)
// This is just a launcher for the web server. During testing the app would
// be directly embedded by another Go project. And when deployed it will run
// independently.
func main() {
r := httprouter.New()
web.Init(r, "")
err := http.ListenAndServe(":8081", r)
if err != nil {
log.Error("Can't listen and serve Pixeldrain Web: %v", err)
}
}