Skip to content

Instantly share code, notes, and snippets.

@camilonova
Created August 26, 2017 21:00
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 camilonova/871573a4dacbadf29e8fc0b76abcd9c0 to your computer and use it in GitHub Desktop.
Save camilonova/871573a4dacbadf29e8fc0b76abcd9c0 to your computer and use it in GitHub Desktop.
Deploy multiple sites with uwsgi
npm install
bower install
gulp compile-sass
. ../bin/activate
pip install -r requirements.txt
python manage.py collectstatic --noinput
python manage.py compilemessages
for i in $( ls -a app/settings_*.py | cut -d "." -f 1 | tr '/' '.' ); do
python manage.py migrate --noinput --settings=$i
done
touch app/local_settings.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment