Skip to content

Commit cbabbce

Browse files
authored
Build static app post start (for static preview) (#94)
1 parent 2266183 commit cbabbce

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.devcontainer/postStartCommand.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,4 @@ supervisorctl reread
2323
supervisorctl update
2424

2525
# Run the build script to perform a one-time build for static preview
26-
cd $WORKSPACE_DIR
27-
.git/hooks/post-commit
28-
cd - >/dev/null
29-
26+
/usr/local/bin/static-preview-build.sh

.devcontainer/refreshTools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sudo mv ./spark-sdk-dist/spark-agent.js /usr/local/bin/spark-agent
4545
sudo cp ./spark-sdk-dist/proxy.js /workspaces/proxy.js
4646
sudo mv ./spark-sdk-dist/proxy.js /usr/local/bin/proxy.js
4747
sudo mv ./spark-sdk-dist/spark.package.json /workspaces/spark.package.json
48-
# sudo mv ./spark-sdk-dist/post-commit ${WORKSPACE_DIR}/.git/hooks/post-commit
48+
sudo mv ./spark-sdk-dist/post-commit /usr/local/bin/static-preview-build.sh
4949

5050
# Upgrade the Spark Tools package
5151
if [ -f "$TOOLS_MARKER_FILE" ] && [ "$(cat "$TOOLS_MARKER_FILE")" == "$(cat ./spark-sdk-dist/spark-tools-version)" ]; then

0 commit comments

Comments
 (0)