fix(cicd): refactor scripts for cicd
This commit is contained in:
parent
c897adc6ea
commit
2dc156cd95
11 changed files with 26 additions and 66 deletions
|
@ -59,7 +59,7 @@ func NewServer(cfg gocfg.ICfg) (*Server, error) {
|
|||
|
||||
port := cfg.GrabInt("Server.Port")
|
||||
portStr, ok := cfg.String("ENV.PORT")
|
||||
if ok {
|
||||
if ok && portStr != "" {
|
||||
port, err = strconv.Atoi(portStr)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("invalid port: %s", portStr))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue