Skip to content

Commit 06e5b8d

Browse files
Debug codespaces config
1 parent 67fd615 commit 06e5b8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "FastAPI Jinja2 Postgres WebApp",
3-
"workspaceFolder": "/workspaces/fastapi-jinja2-postgres-webapp",
3+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
44

55
// Ensure .env exists before Docker Compose processes env_file entries
6-
"initializeCommand": "cd \"${localWorkspaceFolder}\" && bash .devcontainer/ensure-env.sh",
6+
"initializeCommand": "bash \"${localWorkspaceFolder}/.devcontainer/ensure-env.sh\"",
77

88
// Start the Postgres sidecar using the existing compose file
99
"dockerComposeFile": [

.devcontainer/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ services:
33
image: mcr.microsoft.com/devcontainers/python:3.13-bookworm
44
container_name: fastapi-jinja2-postgres-webapp-app
55
volumes:
6-
- ..:/workspaces/fastapi-jinja2-postgres-webapp:cached
7-
working_dir: /workspaces/fastapi-jinja2-postgres-webapp
6+
- ..:/workspaces/${localWorkspaceFolderBasename}:cached
7+
working_dir: /workspaces/${localWorkspaceFolderBasename}
88
depends_on:
99
- db
1010
command: sleep infinity

0 commit comments

Comments
 (0)