code-style: Improve state and logs discussion.

This commit is contained in:
Tim Abbott
2017-10-06 13:26:13 -07:00
parent e660faa225
commit a632c8471d

View File

@@ -169,11 +169,9 @@ messages).
### State and logs files ### State and logs files
Do not write state and logs files inside the current working directory When writing out state of log files, always declare the path in
in the production environment. This will not do what you expect, because the `ZULIP_PATHS` in `zproject/settings.py`, which will do the right thing
current working directory for the app changes every time we do a deploy. in both development and production.
Instead, hardcode a path in settings.py -- see SERVER\_LOG\_PATH in
settings.py for an example.
## JS array/object manipulation ## JS array/object manipulation