stash/main.go
WithoutPants 6a75d5551f Use vendor when building (#201)
* Use vendor code for all go calls

* Add missing vendor dependencies

* Add travis_retry to yarn install

* Fix go test call
2019-11-16 08:03:28 -08:00

23 lines
519 B
Go

//go:generate go run -mod=vendor github.com/99designs/gqlgen
package main
import (
"github.com/stashapp/stash/pkg/api"
"github.com/stashapp/stash/pkg/database"
"github.com/stashapp/stash/pkg/manager"
"github.com/stashapp/stash/pkg/manager/config"
_ "github.com/golang-migrate/migrate/v4/database/sqlite3"
_ "github.com/golang-migrate/migrate/v4/source/file"
)
func main() {
manager.Initialize()
database.Initialize(config.GetDatabasePath())
api.Start()
blockForever()
}
func blockForever() {
select {}
}