mirror of https://github.com/stashapp/stash.git
25 lines
611 B
Go
25 lines
611 B
Go
package main
|
|
|
|
import (
|
|
"github.com/stashapp/stash/api"
|
|
"github.com/stashapp/stash/database"
|
|
"github.com/stashapp/stash/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()
|
|
}
|