daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # run services required for ph work
  3.  
  4. tab_titles=(\
  5.   "ph-core"
  6.   "ph-admin"
  7.   "ph-web"
  8.   "sidekiq"
  9.   "opstool-front"
  10. )
  11.  
  12. commands=(\
  13.   "cd ph-core && bundle exec rails s -p3001"
  14.   "cd ph-admin && rvm use 2.4.1 && bundle exec rails s"  
  15.   "cd ph-web && npm run dev:backend"
  16.   "cd ph-core && bundle exec sidekiq"
  17.   "cd operations && npm run serve:plusstidhome"
  18. )
  19. # echo $commands
  20.  
  21. for i in ${!commands[@]};
  22. do
  23.   cmd=${commands[$i]}
  24.   tab_title=${tab_titles[$i]}
  25.  
  26.   # echo " mate-terminal --tab -e \"zsh --login -ic \"$cmd\" && read\""
  27.   # 'exec zsh' - to leave tab open after command termination
  28.   mate-terminal --tab -e "zsh --login -ic \"$cmd ; exec zsh\"" -t $tab_title
  29. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top