Created
June 19, 2011 13:15
-
-
Save slok/1034260 to your computer and use it in GitHub Desktop.
This scripts executes all the uwsgi scripts in the Django projects(project's path) that are ready to be deployed, by this way we can deploy all the Django apps automatically and not one by one
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
#!/bin/bash | |
# deployAllDj.sh: This scripts executes all the uwsgi scripts in the Django projects(project's path) that are ready | |
# to be deployed, by this way we can deploy all the Django apps automatically and not one by one | |
# | |
# Author: Xabier Larrakoetxea (slok) <slok69@gmail.com> | |
# | |
# License: This script is in public domain. | |
#MODIFY THIS!! | |
SEARCH_PATH=/var/www/nginx | |
SCRIPT_NAME=uwsgi.sh | |
DIRLIST=$(find $SEARCH_PATH -type d -maxdepth 1 -mindepth 1 ) | |
for DIR in $DIRLIST | |
do | |
if [ -x $DIR/$SCRIPT_NAME ]; then | |
$DIR/$SCRIPT_NAME | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment