Skip to content

Instantly share code, notes, and snippets.

@aaronsdevera
Last active October 10, 2015 22:44
Show Gist options
  • Save aaronsdevera/9c03faa8966677f4577b to your computer and use it in GitHub Desktop.
Save aaronsdevera/9c03faa8966677f4577b to your computer and use it in GitHub Desktop.
OSX DRADIS launcher. Launches redis, the DRADIS worker, and DRADIS app in separate windows, then informs you of the process PIDs and opens the web frontend in Safari.
osascript -e 'tell application "Terminal" to activate' -e 'tell application "Terminal" to do script "redis-server /usr/local/etc/redis.conf"' -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' -e 'tell application "Terminal" to do script "cd /Applications/dradis;./dradis-webapp && ./dradis-worker;" in tab 2 of window 1'
echo "REDIS running at:"
ps -ax | grep redis-server | tr -s ' ' | cut -d ' ' -f 2 | awk '{if(NR>1)print}'
echo "DRADIS running at:"
ps -ax | grep ruby | tr -s ' ' | cut -d ' ' -f 2 | awk '{if(NR>1)print}'
open -a Safari http://localhost:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment