intelligence / .devcontainer /devcontainer.json
exp98's picture
Cursor
Fix Codespaces auto-start with nohup to keep server alive
afc4e44
Raw History Blame Contribute Delete
637 Bytes
{
"name": "Eddison Intelligence",
"image": "mcr.microsoft.com/devcontainers/python:3.12",
"postCreateCommand": "pip install -r backend/requirements.txt && cp -n backend/.env.example backend/.env 2>/dev/null || true",
"postStartCommand": "nohup uvicorn server:app --host 0.0.0.0 --port 8000 --app-dir backend > /tmp/eddison.log 2>&1 &",
"forwardPorts": [8000],
"portsAttributes": {
"8000": {
"label": "Eddison Intelligence",
"onAutoForward": "openBrowser"
}
},
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python"
}
}
}
}