stash/main.go

22 lines
445 B
Go

package main
import (
"github.com/stashapp/stash/pkg/api"
"github.com/stashapp/stash/pkg/database"
"github.com/stashapp/stash/pkg/manager"
_ "github.com/golang-migrate/migrate/v4/database/sqlite3"
_ "github.com/golang-migrate/migrate/v4/source/file"
)
func main() {
managerInstance := manager.Initialize()
database.Initialize(managerInstance.StaticPaths.DatabaseFile)
api.Start()
blockForever()
}
func blockForever() {
select {}
}