simplified startup script to make it easier to deploy on my server

This commit is contained in:
rawleyIfowler
2022-02-23 16:37:01 -06:00
parent a1bdc8ca31
commit f7c6407ccb
3 changed files with 9 additions and 8 deletions

View File

@@ -25,8 +25,9 @@ import (
var router *gin.Engine
var dsn string
func main() {
func main() {
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")
bootstrap.InitializeRoutes(router)
router.Run()