stash/main.go

25 lines
638 B
Go
Raw Normal View History

2019-02-09 12:30:49 +00:00
package main
import (
"github.com/stashapp/stash/internal/api"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/internal/manager"
_ "github.com/golang-migrate/migrate/v4/database/sqlite3"
_ "github.com/golang-migrate/migrate/v4/source/file"
)
//var migrationsBox *packr.Box
func main() {
//migrationsBox := packr.New("My Box", "./internal/database/migrations")
//html, err := migrationsBox.FindString("1_initial.up.sql")
//fmt.Println(html, err)
//fmt.Println("hello world")
managerInstance := manager.Initialize()
database.Initialize(managerInstance.Paths.FixedPaths.DatabaseFile)
api.Start()
}