Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASweb-backend-go
Commits
dbed662a
Commit
dbed662a
authored
Mar 13, 2020
by
Sonja Happ
Browse files
remove obsolete access to global config
parent
d2c94d18
Changes
1
Hide whitespace changes
Inline
Side-by-side
start.go
View file @
dbed662a
...
...
@@ -134,15 +134,7 @@ func main() {
}
if
mode
==
"test"
{
database
.
DropTables
(
db
)
log
.
Println
(
"Database tables dropped"
)
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"
)
log
.
Println
(
"Database tables dropped, adding test data to DB"
)
err
=
database
.
DBAddTestData
(
db
,
basePath
,
r
)
if
err
!=
nil
{
fmt
.
Println
(
err
.
Error
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment