GithubHelp home page GithubHelp logo

error: 修改config/local.yml的MySQL 数据库连接, 然后使用 nunu run ,报错, 只有使用 go run ./cmd/server -conf=config/prod.yml 才能正确启动 about nunu HOT 2 CLOSED

go-nunu avatar go-nunu commented on May 20, 2024
error: 修改config/local.yml的MySQL 数据库连接, 然后使用 nunu run ,报错, 只有使用 go run ./cmd/server -conf=config/prod.yml 才能正确启动

from nunu.

Comments (2)

codingcn avatar codingcn commented on May 20, 2024

如果想指定nunu run时的配置文件路径,当前不支持通过命令行的方式指定。

我们暂时可以用过环境变量指定配置文件:

linux or macos

APP_CONF=./config/prod.yml nunu run

windows(注意两个命令需分开执行)

$env:APP_CONF="./config/prod.yml"

nunu run

from nunu.

formal-you avatar formal-you commented on May 20, 2024

我说的是: nunu run 默认加载 ./config/local.yml, 但我的 conf/local.yml, conf/prod.yml 我都同步修改了MySQL 数据库连接, 我想知道到, nunu run , go run ./cmd/server -conf=config/local.yml 这两个为什么都会报错.

from nunu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.