Skip to content

Instantly share code, notes, and snippets.

@earnubs
Created May 27, 2014 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save earnubs/ce29748dd188a1f3c642 to your computer and use it in GitHub Desktop.
Save earnubs/ce29748dd188a1f3c642 to your computer and use it in GitHub Desktop.
#!/bin/bash
PROJECT_ROOT="/path/to/project/"
API_PATH="$PROJECT_ROOT/api/workspace"
WEB_PATH="$PROJECT_ROOT/web/workspace"
cd $API_PATH
tmux new-session -d -s appstore "make build run"
tmux rename-window 'Logs'
tmux select-window -t appstore:0
cd -
cd $WEB_PATH
tmux split-window -t 0 "make build run"
cd -
cd $WEB_PATH
tmux split-window -t 1 "./node_modules/.bin/grunt watch"
tmux select-layout even-vertical
tmux -2 attach-session -t appstore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment