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