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"
|
|
|
|
)
|
|
|
|
|
|
|
|
//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()
|
|
|
|
}
|