Add git, auth and gists tests (#97)

This commit is contained in:
Thomas Miceli
2023-09-17 00:59:47 +02:00
committed by GitHub
parent 46dea89b41
commit fe674ac88b
11 changed files with 831 additions and 35 deletions

View File

@ -52,7 +52,7 @@ func initialize() {
}
log.Info().Msg("Database file: " + filepath.Join(homePath, config.C.DBFilename))
if err := db.Setup(filepath.Join(homePath, config.C.DBFilename)); err != nil {
if err := db.Setup(filepath.Join(homePath, config.C.DBFilename), false); err != nil {
log.Fatal().Err(err).Msg("Failed to initialize database")
}
@ -64,7 +64,7 @@ func initialize() {
func main() {
initialize()
go web.Start()
go web.NewServer(os.Getenv("OG_DEV") == "1").Start()
go ssh.Start()
select {}