Created
August 10, 2011 16:44
-
-
Save heckj/1137366 to your computer and use it in GitHub Desktop.
run components for functional tests under screen
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
# script to background run processes needed to functionally test project | |
function screen_it { | |
#newline for screen execution of commands | |
NL=`echo -ne '\015'` | |
screen -S project -X screen -t $1 | |
screen -S project -p $1 -X stuff "$2$NL" | |
} | |
screen -d -m -S project -t project | |
screen_it celeryd "project/manage.py celeryd" | |
screen_it flask "gunicorn -c conf/gunicorn.conf project.service:app" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment