-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestart_mac_dev.sh
23 lines (23 loc) · 1.5 KB
/
restart_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
osascript -e 'tell application "System Events"
tell application "Terminal"
activate
tell application "System Events" to keystroke "t" using command down
delay 1
do script "cd '$PWD'/api-gateway" in selected tab of front window
do script "bundle install --without production && rake db:drop && rake db:migrate && rake db:seed" in selected tab of front window
do script "cd .." in selected tab of front window
do script "cd '$PWD'/curriculum-service" in selected tab of front window
do script "bundle install --without production && rake db:drop && rake db:migrate && rake db:seed" in selected tab of front window
do script "cd .." in selected tab of front window
do script "cd '$PWD'/forum-service" in selected tab of front window
do script "bundle install --without production && rake db:drop && rake db:migrate && rake db:seed" in selected tab of front window
do script "cd .." in selected tab of front window
do script "cd '$PWD'/user-service" in selected tab of front window
do script "bundle install --without production && rake db:drop && rake db:migrate && rake db:seed" in selected tab of front window
do script "cd .." in selected tab of front window
do script "cd '$PWD'/frontend && npm i" in selected tab of front window
do script "cd .." in selected tab of front window
do script "cd '$PWD'/inactivity-checker-service" in selected tab of front window
do script "bundle install --without production" in selected tab of front window
end tell
end tell'