-
Notifications
You must be signed in to change notification settings - Fork 9
/
start-all-mac.sh
22 lines (14 loc) · 948 Bytes
/
start-all-mac.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
ROOTDIR="`pwd`"
cmd_to_run="cd '$ROOTDIR' && bash gradlew fortune-cookie-app-server:bootrun"
osascript -e "tell application \"Terminal\" to do script \"$cmd_to_run\""
cmd_to_run="cd '$ROOTDIR' && bash gradlew fortune-cookie-fulfillment-service:bootrun"
osascript -e "tell application \"Terminal\" to do script \"$cmd_to_run\""
cmd_to_run="cd '$ROOTDIR' && bash gradlew fortune-cookie-mailing-service:bootrun"
osascript -e "tell application \"Terminal\" to do script \"$cmd_to_run\""
cmd_to_run="cd '$ROOTDIR' && bash gradlew fortune-cookie-product-service:bootrun"
osascript -e "tell application \"Terminal\" to do script \"$cmd_to_run\""
cmd_to_run="cd '$ROOTDIR' && bash gradlew fortune-cookie-edge-server:bootrun"
osascript -e "tell application \"Terminal\" to do script \"$cmd_to_run\""
cmd_to_run="cd '$ROOTDIR/fortune-cookie-app' && npm run start"
osascript -e "tell application \"Terminal\" to do script \"$cmd_to_run\""