Last active
October 10, 2015 22:44
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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