New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望可执行程序增加参数解析flag,来设置根目录路径,配置文件路径等; #59

Closed
kuerme opened this Issue Jun 2, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@kuerme

kuerme commented Jun 2, 2017

  1. 希望可执行程序增加参数解析flag,来设置根目录路径,配置文件路径等; 比如:mindoc --root="/path/to/mindoc" --config="/path/to/mindoc/app.conf"; golang中进行参数读取还是很简单的,具体请参考标准库https://godoc.org/flag; 必须在项目根目录运行程序,才能正确读取项目静态文件,这有点傻傻的感觉;
  2. 希望可执行程序增加daemon运行模式,以便于将可执行程序作为linux服务运行(可接受并处理signal);b
    比如: mindoc --daemon=true; 可使用第三方库实现:https://github.com/takama/daemon;
@lifei6671

This comment has been minimized.

Owner

lifei6671 commented Jun 2, 2017

1、项目使用的是beego框架,我只是实现了业务逻辑,您说的这些框架未实现,我也没办法实现。
2、这个可以使用第三方框架实现,比如supervisor。因用户运行的平台太复杂,因此这个项目暂时不考虑这个功能。

@lifei6671

This comment has been minimized.

Owner

lifei6671 commented Jun 6, 2017

0.4版本已实现。

@lifei6671 lifei6671 closed this Jun 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment