mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
remove obsolete access to global config
This commit is contained in:
parent
d2c94d1886
commit
dbed662ad1
1 changed files with 1 additions and 9 deletions
10
start.go
10
start.go
|
@ -134,15 +134,7 @@ func main() {
|
||||||
}
|
}
|
||||||
if mode == "test" {
|
if mode == "test" {
|
||||||
database.DropTables(db)
|
database.DropTables(db)
|
||||||
log.Println("Database tables dropped")
|
log.Println("Database tables dropped, adding test data to DB")
|
||||||
|
|
||||||
basePath, err := configuration.GolbalConfig.String("base.path")
|
|
||||||
if err != nil {
|
|
||||||
fmt.Println(err.Error())
|
|
||||||
fmt.Println("error: base.path parameter missing in global configuration, aborting")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
log.Println("Adding test data to DB")
|
|
||||||
err = database.DBAddTestData(db, basePath, r)
|
err = database.DBAddTestData(db, basePath, r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err.Error())
|
fmt.Println(err.Error())
|
||||||
|
|
Loading…
Add table
Reference in a new issue