Skip to content

Instantly share code, notes, and snippets.

@slok
Created June 19, 2011 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slok/1034260 to your computer and use it in GitHub Desktop.
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
#!/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