Allow user to specify assets path in settings

Fixes #2
This commit is contained in:
Maddie Zhan
2020-06-16 15:34:29 +08:00
parent 8971ba8117
commit bd721cdb07
6 changed files with 18 additions and 4 deletions
+2
View File
@@ -3,6 +3,7 @@ package main
import (
"github.com/librespeed/speedtest/config"
"github.com/librespeed/speedtest/database"
"github.com/librespeed/speedtest/results"
"github.com/librespeed/speedtest/web"
log "github.com/sirupsen/logrus"
@@ -11,6 +12,7 @@ import (
func main() {
conf := config.Load()
results.Initialize(&conf)
database.SetDBInfo(&conf)
log.Fatal(web.ListenAndServe(&conf))
}