Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 7a8ed0c

Browse files
committed
Fix: Correct Celery stderr logging path.
1 parent c4543b6 commit 7a8ed0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/docker_tools_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _start_servers(dev: bool) -> None:
102102
# This much match the address in `./nginx/sites-available/runestone.template`.
103103
f"--bind unix:/run/fastapi.sock {'--reload ' if dev else ''} "
104104
# If logging to a file, then Gunicorn tries to append to it (open the file with a mode of "a+"). This fails if the underlying "file" is actually ``stdout`` or ``stderr`` with the error ``io.UnsupportedOperation: File or stream is not seekable.``. So, redirect these instead.
105-
"> /var/log/celery/access.log 2> /var/log/error.log &",
105+
"> /var/log/celery/access.log 2> /var/log/celery/error.log &",
106106
"service nginx start",
107107
"poetry run gunicorn -D --config $RUNESTONE_PATH/docker/gunicorn_config/web2py_config.py &",
108108
cwd=f"{env.RUNESTONE_PATH}/docker/gunicorn_config",

0 commit comments

Comments
 (0)