Skip to content
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

配置中的地址建议用相对路径代替绝对路径 #4

Closed
wh1100717 opened this issue May 17, 2014 · 1 comment
Closed

配置中的地址建议用相对路径代替绝对路径 #4

wh1100717 opened this issue May 17, 2014 · 1 comment

Comments

@wh1100717
Copy link

你配置的所有地址都是绝对路径,而实际上几乎所有的地址都可以根据项目的相对路径进行表示。这样绝对路径,在自己电脑上弄还好,一旦涉及到克隆一份新的副本出来,更改配置就很麻烦了,而且假如在多台设备上进行开发,并且项目路径不统一,则同步起来会相当麻烦。建议全部都改成相对路径。

比如说confg/supervisord.conf

[supervisord]
logfile=/home/the5fire/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB        ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10           ; (num of main logfile rotation backups;default 10)
loglevel=info                ; (log level;default info; others: debug,warn,trace)

其中logfile实际上可以写成logfile=tmp/supervisord.log,只要保证是在项目根目录执行命令就行了。

@the5fire
Copy link
Owner

the5fire commented Jun 1, 2014

恩,你的这个建议也有道理。有需求的同学可以按照这个来做。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants