Create gists from git http server endpoint (#95)

This commit is contained in:
Thomas Miceli
2023-09-09 19:39:57 +02:00
committed by GitHub
parent 977fc9db28
commit 46dea89b41
10 changed files with 276 additions and 25 deletions

View File

@ -7,6 +7,7 @@ import (
"github.com/thomiceli/opengist/internal/config"
"github.com/thomiceli/opengist/internal/db"
"github.com/thomiceli/opengist/internal/git"
"github.com/thomiceli/opengist/internal/memdb"
"github.com/thomiceli/opengist/internal/ssh"
"github.com/thomiceli/opengist/internal/web"
"os"
@ -54,6 +55,10 @@ func initialize() {
if err := db.Setup(filepath.Join(homePath, config.C.DBFilename)); err != nil {
log.Fatal().Err(err).Msg("Failed to initialize database")
}
if err := memdb.Setup(); err != nil {
log.Fatal().Err(err).Msg("Failed to initialize in memory database")
}
}
func main() {