Skip to content

Commit

Permalink
update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbbbbbbbbba committed May 29, 2024
1 parent d472e59 commit 5e156b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
mysql:
container_name: bbs-go-mysql
Expand Down
3 changes: 3 additions & 0 deletions server/internal/server/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"strings"
"time"

"github.com/mlogclub/simple/common/jsons"
"github.com/mlogclub/simple/common/strs"
"github.com/mlogclub/simple/sqls"
"github.com/spf13/viper"
Expand Down Expand Up @@ -53,6 +54,8 @@ func initConfig() {
if err := viper.Unmarshal(&config.Instance); err != nil {
panic(fmt.Errorf("fatal error config file: %w", err))
}

slog.Info("Load config", slog.String("ENV", env), slog.String("config", jsons.ToJsonStr(config.Instance)))
}

func initDB() {
Expand Down

0 comments on commit 5e156b7

Please sign in to comment.