Skip to content

Instantly share code, notes, and snippets.

@aaronsdevera
Last active October 10, 2015 22:44
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