We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43f8829 commit e08342aCopy full SHA for e08342a
1 file changed
.devcontainer/devcontainer.json
@@ -29,6 +29,10 @@
29
"DB_URL": "mongodb://localhost:27017/",
30
"DB_NAME": "farm_intro"
31
},
32
- "postCreateCommand": "pip install -r backend/requirements.txt && cd frontend && npm install",
33
- "postStartCommand": "echo 'Backend: DB_URL=mongodb://localhost:27017/ DB_NAME=farm_intro uvicorn main:app --reload (from backend/)'"
+ "postCreateCommand": "pip install -r backend/requirements.txt && cd frontend && npm ci",
+ "postStartCommand": "echo 'Services ready: MongoDB local on 27017. Backend and frontend start automatically after attach.'",
34
+ "postAttachCommand": {
35
+ "backend": "cd backend && DEBUG_MODE=true uvicorn main:app --host 0.0.0.0 --port 8000 --reload",
36
+ "frontend": "cd frontend && HOST=0.0.0.0 npm start"
37
+ }
38
}
0 commit comments