File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 // Runs automatically after Prebuild Template environment is created.
1010 "onCreateCommand" : " .devcontainer/onCreate.sh" ,
1111 // Runs automatically every time the dev container has been (re-)started
12- "postStartCommand" : " .devcontainer/postStartCommand.sh" ,
12+ "postStartCommand" : {
13+ "tools" : " .devcontainer/postStartCommand.sh" ,
14+ "welcome-mat" : " echo Welcome to Spark!"
15+ },
1316 "customizations" : {
1417 "codespaces" : {
1518 "onStopCommand" : " REVISION_NAME=spark-preview /usr/local/bin/deploy.sh"
Original file line number Diff line number Diff line change @@ -26,6 +26,3 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2626
2727echo " Pre-starting the server and generating the optimized assets"
2828npm run optimize --override
29-
30- echo " Installing supervisor"
31- sudo apt update && sudo apt install -y supervisor
Original file line number Diff line number Diff line change 33SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
44" $SCRIPT_DIR /refreshTools.sh"
55
6- sudo cp .devcontainer/spark.conf /etc/supervisor/conf.d/
6+ USE_DESIGNER=true USE_SPARK_AGENT=true npm run dev &
7+ proxy.js &
8+ spark-server &
9+ spark-agent &
10+ spark-designer &
11+ spark-file-syncer 13000 >> /tmp/.spark-file-syncer.log 2>&1 &
712
8- sudo service supervisor start
9- sudo supervisorctl reread
10- sudo supervisorctl update
13+ echo " Spark tools started successfully"
1114
15+ wait
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments