Skip to content

Commit 9dde034

Browse files
committed
Unbuffer so prints show in logs
1 parent 0e74183 commit 9dde034

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: "spiare"
33
services:
44
watcher:
55
environment:
6+
PYTHONUNBUFFERED: 1
67
DATABASE_URL: ${DATABASE_URL}
78
extra_hosts:
89
- database:${DATABASE_HOST}

watcher/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ RUN pip install --no-cache-dir -r requirements.txt
77

88
COPY .. /spiare
99

10-
CMD ["python", "-m", "watcher.main"]
10+
CMD ["python", "-m", "-u", "watcher.main"]

0 commit comments

Comments
 (0)