From e419af236358d69b770ffe94958cde9d6200485c Mon Sep 17 00:00:00 2001 From: Alexa Gillman Date: Thu, 8 May 2025 11:16:36 -0400 Subject: [PATCH 1/3] Add Command That Runs Before Codespace ShutsDown --- .devcontainer/devcontainer.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 587515b..3864d38 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,6 +18,11 @@ "spark-designer": "spark-designer", "spark-file-syncer": "spark-file-syncer 13000 >> /tmp/.spark-file-syncer.log 2>&1" }, + "customizations": { + "codespaces": { + "onStopCommand": "REVISION_NAME='spark-preview' /usr/local/bin/deploy.sh" + } + }, "forwardPorts": [4000, 5000, 9000, 13000], "features": { "ghcr.io/devcontainers/features/sshd:1": { @@ -25,4 +30,4 @@ } } } - \ No newline at end of file + From a54c6c6a88c17290c74e118fd73effd3bbe5150d Mon Sep 17 00:00:00 2001 From: Alexa Gillman Date: Thu, 8 May 2025 11:18:01 -0400 Subject: [PATCH 2/3] Update devcontainer.json --- .devcontainer/devcontainer.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3864d38..6a7c27a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -19,10 +19,10 @@ "spark-file-syncer": "spark-file-syncer 13000 >> /tmp/.spark-file-syncer.log 2>&1" }, "customizations": { - "codespaces": { - "onStopCommand": "REVISION_NAME='spark-preview' /usr/local/bin/deploy.sh" - } - }, + "codespaces": { + "onStopCommand": "REVISION_NAME='spark-preview' /usr/local/bin/deploy.sh" + } + }, "forwardPorts": [4000, 5000, 9000, 13000], "features": { "ghcr.io/devcontainers/features/sshd:1": { @@ -30,4 +30,3 @@ } } } - From 2feded8c8ccdc0803e23438ead883a4eada7036b Mon Sep 17 00:00:00 2001 From: Alexa Gillman Date: Thu, 8 May 2025 13:56:23 -0400 Subject: [PATCH 3/3] Update devcontainer.json --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c495cd9..3264cd2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,7 +15,7 @@ }, "customizations": { "codespaces": { - "onStopCommand": "REVISION_NAME='spark-preview' /usr/local/bin/deploy.sh" + "onStopCommand": "REVISION_NAME=spark-preview /usr/local/bin/deploy.sh" } }, "forwardPorts": [