Skip to content

Instantly share code, notes, and snippets.

@jsindos
Created March 7, 2017 08:02
Show Gist options
  • Save jsindos/cdc243667dc75f1b5da2b39dd7ba8301 to your computer and use it in GitHub Desktop.
Save jsindos/cdc243667dc75f1b5da2b39dd7ba8301 to your computer and use it in GitHub Desktop.
Bash scripts for running Accolade locally
#!/bin/bash
source ~/.virtualenvs/be_accolade/bin/activate
cd ~/code/be_accolade
osascript -e 'tell application "Terminal"
activate
tell application "System Events" to keystroke "t" using command down
repeat while contents of selected tab of window 1 starts with linefeed
delay 0.01
end repeat
do script "source ~/scripts/virtual-env-accolade.sh" in window 1
end tell
'
osascript -e 'tell application "Terminal"
activate
tell application "System Events" to keystroke "t" using command down
repeat while contents of selected tab of window 1 starts with linefeed
delay 0.01
end repeat
do script "source ~/scripts/frontend-accolade-shell.sh" in window 1
end tell
'
osascript -e 'tell application "Terminal"
activate
tell application "System Events" to keystroke "t" using command down
repeat while contents of selected tab of window 1 starts with linefeed
delay 0.01
end repeat
do script "source ~/scripts/frontend-accolade.sh" in window 1
end tell
'
osascript -e 'tell application "Terminal"
activate
tell application "System Events" to keystroke "t" using command down
repeat while contents of selected tab of window 1 starts with linefeed
delay 0.01
end repeat
do script "source ~/scripts/frontend-accolade-test.sh" in window 1
end tell
'
subl .
python manage.py runserver --settings=be_accolade.settings.local
#!/bin/bash
cd ~/code/fe_accolade
#!/bin/bash
cd ~/code/fe_accolade
npm run test-watch
#!/bin/bash
cd ~/code/fe_accolade
subl .
npm run build-local
#!/bin/bash
source ~/.virtualenvs/be_accolade/bin/activate
cd ~/code/be_accolade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment