We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e220d13 commit df0c7d1Copy full SHA for df0c7d1
2 files changed
.devcontainer/python-api-server/devcontainer.json
@@ -7,7 +7,7 @@
7
"customizations": {
8
"codespaces": {
9
"openFiles": [
10
- "/planventure-api/app.py"
+ "app.py"
11
]
12
},
13
"vscode": {
@@ -31,5 +31,11 @@
31
}
32
33
"postCreateCommand": "pip install -r requirements.txt",
34
- "forwardPorts": [5000]
+ "forwardPorts": [5000],
35
+ "portsAttributes": {
36
+ "5000": {
37
+ "label": "Flask API",
38
+ "onAutoForward": "notify"
39
+ }
40
41
docker-compose.yml
@@ -2,11 +2,14 @@ version: '3.8'
2
3
services:
4
backend:
5
+ volumes:
6
+ - ./planventure-api:/app
build:
context: ./planventure-api
dockerfile: Dockerfile
ports:
- "5000:5000"
environment:
+ - FLASK_APP=app.py
14
- FLASK_ENV=development
15
- DATABASE_URL=sqlite:///planventure.db
0 commit comments