-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_mac_dev.sh
38 lines (38 loc) · 2.25 KB
/
start_mac_dev.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
31
32
33
34
35
36
37
38
osascript -e 'tell application "System Events"
if not (exists process "Terminal") then
tell application "Terminal"
activate
do script "cd '$PWD'/forum-ml-test && pipenv shell" in selected tab of front window
delay 6
do script "python3 main.py" in selected tab of front window
tell application "System Events" to keystroke "t" using command down
delay 1
tell application "System Events" to keystroke "2" using command down
do script "cd '$PWD'/curriculum-service && rails s" in selected tab of front window
tell application "System Events" to keystroke "t" using command down
delay 1
tell application "System Events" to keystroke "3" using command down
do script "cd '$PWD'/forum-service && rails s" in selected tab of front window
tell application "System Events" to keystroke "t" using command down
delay 1
tell application "System Events" to keystroke "4" using command down
do script "cd '$PWD'/user-service && rails s" in selected tab of front window
tell application "System Events" to keystroke "t" using command down
delay 1
tell application "System Events" to keystroke "5" using command down
do script "cd '$PWD'/frontend && npm start" in selected tab of front window
tell application "System Events" to keystroke "t" using command down
delay 1
tell application "System Events" to keystroke "6" using command down
do script "cd '$PWD'/api-gateway && rails s" in selected tab of front window
tell application "System Events" to keystroke "t" using command down
delay 1
tell application "System Events" to keystroke "7" using command down
do script "cd '$PWD'/inactivity-checker-service && rails s" in selected tab of front window
tell application "System Events" to keystroke "t" using command down
delay 1
tell application "System Events" to keystroke "8" using command down
do script "cd '$PWD'/frontend && npx cypress open" in selected tab of front window
end tell
end if
end tell'