Skip to content

Commit

Permalink
fix off switch
Browse files Browse the repository at this point in the history
  • Loading branch information
jrapoport committed Jan 18, 2022
1 parent 8ecbb3c commit 65ee38b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (s *Host) Start(start ServeFunc) {

// ListenAndServe listens on a port and serves.
func (s *Host) ListenAndServe() error {
if s.start == nil || s.addr == "" {
if s.start == nil || s.addr == "" || s.addr == "off" {
return nil
}
started := sync.WaitGroup{}
Expand Down
2 changes: 1 addition & 1 deletion env/dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ GOTHIC_HOST=localhost

GOTHIC_DB_AUTOMIGRATE=true
GOTHIC_DB_DRIVER=mysql
GOTHIC_DB_DSN="root@tcp(localhost:3306)/dev?parseTime=true"
GOTHIC_DB_DSN="root@tcp(0.0.0.0:3306)/dev?parseTime=true"

GOTHIC_LOG_LEVEL=info

0 comments on commit 65ee38b

Please sign in to comment.