You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2025/07/28 22:20:03 UTC
(superset) branch codespaces created (now 9de83efea4)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a change to branch codespaces
in repository https://gitbox.apache.org/repos/asf/superset.git
at 9de83efea4 fix: Correct workspace paths for Codespaces
This branch includes the following new commits:
new 9de83efea4 fix: Correct workspace paths for Codespaces
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(superset) 01/01: fix: Correct workspace paths for Codespaces
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch codespaces
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 9de83efea4247851ad679aa7783a58d9455aaa8c
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Mon Jul 28 15:19:44 2025 -0700
fix: Correct workspace paths for Codespaces
- Use /workspaces instead of /app for Codespaces compatibility
- Fix postCreateCommand and postStartCommand paths
- Make startup script more flexible with directory detection
---
.devcontainer/devcontainer.json | 6 +++---
.devcontainer/start-superset.sh | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 36cb7076d8..d6d54269f8 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -4,7 +4,7 @@
"../docker-compose-light.yml"
],
"service": "superset-node-light",
- "workspaceFolder": "/app",
+ "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Use the light config for faster startup and lower resource usage
"shutdownAction": "stopCompose",
@@ -71,10 +71,10 @@
},
// Run commands after container is created
- "postCreateCommand": "chmod +x /app/.devcontainer/start-superset.sh && echo '🚀 Superset Codespace ready! Run: .devcontainer/start-superset.sh to start'",
+ "postCreateCommand": "chmod +x .devcontainer/start-superset.sh && echo '🚀 Superset Codespace ready! Run: .devcontainer/start-superset.sh to start'",
// Auto-start Superset on Codespace resume
- "postStartCommand": "cd /app && .devcontainer/start-superset.sh",
+ "postStartCommand": ".devcontainer/start-superset.sh",
// Features to add to the dev container
"features": {
diff --git a/.devcontainer/start-superset.sh b/.devcontainer/start-superset.sh
index 3fe5735313..14930ae3bb 100755
--- a/.devcontainer/start-superset.sh
+++ b/.devcontainer/start-superset.sh
@@ -8,7 +8,7 @@ echo "📦 Using project name: ${CODESPACE_NAME}"
echo "🌐 Frontend will be available at port 9001"
# Ensure we're in the right directory
-cd /workspaces/superset-2 || cd /app
+cd /workspaces/superset-2 || cd /workspaces/superset || cd .
# Check if docker is running
if ! docker info > /dev/null 2>&1; then