stash/main.go

18 lines
382 B
Go
Raw Normal View History

2019-02-09 12:30:49 +00:00
package main
import (
2019-02-10 02:53:08 +00:00
"github.com/stashapp/stash/api"
"github.com/stashapp/stash/database"
"github.com/stashapp/stash/manager"
2019-02-09 12:30:49 +00:00
_ "github.com/golang-migrate/migrate/v4/database/sqlite3"
_ "github.com/golang-migrate/migrate/v4/source/file"
)
func main() {
managerInstance := manager.Initialize()
2019-02-11 06:39:21 +00:00
database.Initialize(managerInstance.StaticPaths.DatabaseFile)
2019-02-09 12:30:49 +00:00
api.Start()
}