Skip to content

Commit 121bf9b

Browse files
committed
watchmedo: reload build/celery containers properly
* `--kill-after=5` does not work because there is a bug in watchmedo * simplify pattern to match all Python files (*.py) * rely on `--ignore-patterns` to avoid extra files
1 parent ed751d9 commit 121bf9b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dockerfiles/entrypoints/build.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ if [ -n "${DOCKER_NO_RELOAD}" ]; then
1010
else
1111
echo "Running Docker with reload"
1212
watchmedo auto-restart \
13-
--patterns="./readthedocs/*.py;./readthedocsinc/*.py" \
13+
--patterns="*.py" \
1414
--ignore-patterns="*.#*.py;*.pyo;*.pyc;*flycheck*.py;*test*;*migrations*;*management/commands*" \
1515
--ignore-directories \
1616
--recursive \
1717
--signal=SIGTERM \
18-
--kill-after=5 \
1918
--interval=5 \
2019
-- \
2120
$CMD

dockerfiles/entrypoints/celery.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ if [ -n "${DOCKER_NO_RELOAD}" ]; then
1212
else
1313
echo "Running Docker with reload"
1414
watchmedo auto-restart \
15-
--patterns="./readthedocs/*.py;./readthedocsinc/*.py" \
15+
--patterns="*.py" \
1616
--ignore-patterns="*.#*.py;*.pyo;*.pyc;*flycheck*.py;*test*;*migrations*;*management/commands*" \
1717
--ignore-directories \
1818
--recursive \
1919
--signal=SIGTERM \
20-
--kill-after=5 \
2120
--interval=5 \
2221
-- \
2322
$CMD

0 commit comments

Comments
 (0)