-
Notifications
You must be signed in to change notification settings - Fork 128
/
run_local.sh
executable file
·30 lines (26 loc) · 1010 Bytes
/
run_local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Get the directory of the script
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Open a new terminal tab and run 'poetry run start' in the /chrome directory
osascript <<EOF
tell application "Terminal"
if not (exists window 1) then reopen
activate
tell application "System Events" to keystroke "t" using {command down}
do script "cd '$SCRIPT_DIR/chrome' && poetry run start" in front window
end tell
EOF
# Open another terminal tab and run 'poetry run start' in the /server directory
osascript <<EOF
tell application "Terminal"
tell application "System Events" to keystroke "t" using {command down}
do script "cd '$SCRIPT_DIR/server' && poetry run start" in front window
end tell
EOF
# Open another terminal tab and run 'poetry run start' in the /server directory
osascript <<EOF
tell application "Terminal"
tell application "System Events" to keystroke "t" using {command down}
do script "cd '$SCRIPT_DIR/worker' && poetry run start" in front window
end tell
EOF