Comments (2)
bee tools is just for develop tools. bee run
just watch the file and auto build the source code. I think it didn't need to pass the params to the application. why you want to do that? runmode always changed in the config file.
if you don't want to change it in config, you also can set to ENV, and then read from that.
from bee.
Indeed, Bee can achieve that already.
Copy https://github.com/beego/bee/blob/master/bee.json
to your project path, and add the commands you need.
{
"version": 0,
"gopm": {
"enable": false,
"install": false
},
"go_install": false,
"watch_ext": [],
"dir_structure": {
"watch_all": false,
"controllers": "",
"models": "",
"others": []
},
"cmd_args": ["-runmode=prod"],
"envs": [],
"database": {
"driver": "mysql"
}
}
from bee.
Related Issues (20)
- Default 'bee api' returns 404 HOT 1
- swagger 如何切换不同版本请求
- Support struct resopnse with @Failture HOT 1
- 运行bee run -gendoc=true无法生成commentsRouter_controllers.go文件 HOT 3
- 当一个方法支持多种method时会产生同样的operation id HOT 2
- bee run 访问404 HOT 6
- bee generate routers 支持/{*}这种形式生成路由也能正常访问
- bee pro gen过程中不能git clone.... HOT 1
- init global config instance failed. If you do not use this, just ignore it. open conf/app.conf: no such file or directory
- pack for m1 makbook HOT 2
- Mac下bee 命令行无法执行 zsh: command not found: bee HOT 1
- 升级、版本号、v1和v2共存问题 HOT 3
- How to generate a custom directory structure? HOT 1
- 无法自动刷新 HOT 3
- please update swaggerVersion to 4.6.2 in file run/docs.go !!
- bee v2 install fail HOT 5
- 关于bee pack命令 HOT 3
- Why can't I run migrations with bee tool -conn with environment variables HOT 4
- New
- bee 生成model问题 求救 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bee.