Skip to content

Commit e7152f4

Browse files
committed
Copy the whole project, not just the "wger" subpath
Also: * replace the watch on requirements.txt with pyproject.toml, which is what we're using now * remove the bind mount, this was unnecessary and was working against the watch settings.
1 parent b53272f commit e7152f4

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

dev-postgres/docker-compose.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@ services:
99
develop:
1010
watch:
1111
- action: sync
12-
path: ${WGER_CODEPATH}/wger
12+
path: ${WGER_CODEPATH}
1313
target: /home/wger/src
1414
- action: rebuild
15-
path: ${WGER_CODEPATH}/requirements.txt
15+
path: ${WGER_CODEPATH}/pyproject.toml
1616
- action: rebuild
17-
path: ${WGER_CODEPATH}/requirements_dev.txt
17+
path: ${WGER_CODEPATH}/package.json
1818
env_file:
1919
- ../config/prod.env
2020
- ../config/dev.env
21-
volumes:
22-
- type: bind
23-
source: ${WGER_CODEPATH}
24-
target: /home/wger/src
2521
ports:
2622
- "8000:8000"
2723

dev/docker-compose.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@ services:
99
develop:
1010
watch:
1111
- action: sync
12-
path: ${WGER_CODEPATH}/wger
12+
path: ${WGER_CODEPATH}
1313
target: /home/wger/src
1414
- action: rebuild
15-
path: ${WGER_CODEPATH}/requirements.txt
15+
path: ${WGER_CODEPATH}/pyproject.toml
1616
- action: rebuild
17-
path: ${WGER_CODEPATH}/requirements_dev.txt
17+
path: ${WGER_CODEPATH}/package.json
1818
env_file:
1919
- ../config/prod.env
2020
- ../config/dev.env
2121
- ../config/dev-sqlite.env
22-
volumes:
23-
- type: bind
24-
source: ${WGER_CODEPATH}
25-
target: /home/wger/src
2622
ports:
2723
- "8000:8000"
2824

0 commit comments

Comments
 (0)