simplified startup script to make it easier to deploy on my server
This commit is contained in:
1
main.go
1
main.go
@@ -27,6 +27,7 @@ var dsn string
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
router = gin.Default()
|
router = gin.Default()
|
||||||
|
// This needs to change because of RCCTL in OpenBSD, not sure if you can use a ksh variable as path in Gin but i'll test
|
||||||
router.LoadHTMLGlob("templates/*.tmpl")
|
router.LoadHTMLGlob("templates/*.tmpl")
|
||||||
bootstrap.InitializeRoutes(router)
|
bootstrap.InitializeRoutes(router)
|
||||||
router.Run()
|
router.Run()
|
||||||
|
|||||||
Reference in New Issue
Block a user