Skip to content

Commit 8f26df1

Browse files
committed
hotfix: enable hot reload with docker compose file. Fixes permission error from current implementation
1 parent 4fc5f75 commit 8f26df1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

api/app.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55

66
dev_mode = True
77
app = Flask(__name__)
8-
app.config.update(
9-
TESTING=dev_mode,
10-
DEBUG=dev_mode,
11-
USE_RELOADER=dev_mode,
12-
THREADED=False
13-
)
14-
158

169
@app.route('/add/<int:param1>/<int:param2>')
1710
def add(param1: int, param2: int) -> str:

docker-compose.development.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ services:
44
build:
55
context: ./api
66
dockerfile: Dockerfile.dev
7+
entrypoint:
8+
- flask
9+
- run
10+
- --host=0.0.0.0
11+
environment:
12+
FLASK_DEBUG: "on"
13+
FLASK_APP: ./app.py
714
restart: always
815
ports:
916
- "5001:5001"

0 commit comments

Comments
 (0)