mirror of https://github.com/statping/statping
parent
5cd3e90b43
commit
87a76f715b
|
@ -4,6 +4,8 @@
|
|||
- Modified Makefile to create new snapcraft versions
|
||||
- Fixed issue when logs are not initiated yet. Issue #502
|
||||
- Fixed issue when SQLite (statping.db) is not found Issue #499
|
||||
- Modified port flag in Docker image
|
||||
- Fixed issue on startup without config.yml file not starting in setup mode
|
||||
|
||||
# 0.90.28 (04-16-2020)
|
||||
- Fixed postgres timestamp grouping
|
||||
|
@ -15,7 +17,6 @@
|
|||
- Added 'reset' command that will delete files and backup .db file for a fresh install
|
||||
- Added error type that has common errors with http status code based on error
|
||||
|
||||
|
||||
# 0.90.27 (04-15-2020)
|
||||
- Fixed postgres database table creation process
|
||||
- Modified go build process, additional ARCHs
|
||||
|
|
|
@ -18,5 +18,5 @@ EXPOSE $PORT
|
|||
|
||||
HEALTHCHECK --interval=60s --timeout=10s --retries=3 CMD curl -s "http://localhost:$PORT/health" | jq -r -e ".online==true"
|
||||
|
||||
CMD statping -port $PORT
|
||||
CMD statping --port $PORT
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ func start() {
|
|||
|
||||
confgs, err = configs.LoadConfigs()
|
||||
if err != nil {
|
||||
log.Infoln("Starting in Setup Mode")
|
||||
if err := SetupMode(); err != nil {
|
||||
exit(err)
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ package configs
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/statping/statping/types/errors"
|
||||
"github.com/statping/statping/utils"
|
||||
)
|
||||
|
||||
|
@ -56,6 +57,10 @@ func LoadConfigFile(directory string) (*DbConfig, error) {
|
|||
SqlFile: p.GetString("SQL_FILE"),
|
||||
}
|
||||
|
||||
if !utils.FileExists(directory + "/config.yml") {
|
||||
return nil, errors.New(fmt.Sprintf("%s/config.yml does not exist", directory))
|
||||
}
|
||||
|
||||
log.WithFields(utils.ToFields(configs)).Debugln("read config file: " + directory + "/config.yml")
|
||||
return configs, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue