updated gitignore and ci/cd pipeline
All checks were successful
Build and Release Core / Test and Build (push) Successful in 3m34s
All checks were successful
Build and Release Core / Test and Build (push) Successful in 3m34s
This commit is contained in:
32
cmd/rr/main.go
Normal file
32
cmd/rr/main.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"epigas.gitea.cloud/RiskRancher/core/pkg/datastore"
|
||||
"epigas.gitea.cloud/RiskRancher/core/pkg/server"
|
||||
"epigas.gitea.cloud/RiskRancher/core/ui"
|
||||
)
|
||||
|
||||
var (
|
||||
BuildVersion = "dev"
|
||||
BuildCommit = "none"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ui.SetVersionInfo(BuildVersion, BuildCommit)
|
||||
|
||||
db := datastore.InitDB("./data/RiskRancher.db")
|
||||
|
||||
defer db.Close()
|
||||
|
||||
store := datastore.NewSQLiteStore(db)
|
||||
|
||||
app := server.NewApp(store)
|
||||
|
||||
server.RegisterRoutes(app)
|
||||
|
||||
log.Println("🤠 RiskRancher Core Server running on http://localhost:8080")
|
||||
log.Fatal(http.ListenAndServe(":8080", app.Router))
|
||||
}
|
||||
Reference in New Issue
Block a user