diff --git a/docs/code-style.md b/docs/code-style.md index fc818b4250..e9bbff2530 100644 --- a/docs/code-style.md +++ b/docs/code-style.md @@ -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