You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我说的是: nunu run 默认加载 ./config/local.yml, 但我的 conf/local.yml, conf/prod.yml 我都同步修改了MySQL 数据库连接, 我想知道到, nunu run , go run ./cmd/server -conf=config/local.yml 这两个为什么都会报错.
formal-you
changed the title
error: 修改config/local.yml的MySQL 数据库连接, 然后使用 nunu run ,报错, 使用 go run ./cmd/server -conf=config/.yml 才能正确启动
error: 修改config/local.yml的MySQL 数据库连接, 然后使用 nunu run ,报错, 只有使用 go run ./cmd/server -conf=config/prod.yml 才能正确启动
Aug 31, 2023
我在使用 [nunu-layout-advanced]模板后,修改了 conf/local.yml, conf/prod.yml 的 MySQL 数据库连接, 并修改了 internal/repository/repository.go:30
随后使用 nunu run 命令启动 报错:
但当我改为使用 go run ./cmd/server -conf=config/prod.yml
能够正常启动, conf/local.yml, conf/prod.yml 我都同步修改了MySQL 数据库连接. 按说 使用 go run ./cmd/server -conf=config/local.yml 不会报错, 但同样会报上面的错误.
The text was updated successfully, but these errors were encountered: