Skip to content

Commit b8af75f

Browse files
fix: devcontainer .env relative path
1 parent a02839b commit b8af75f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"workspaceFolder": "/workspaces/fastapi-jinja2-postgres-webapp",
44

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

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

0 commit comments

Comments
 (0)