Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 582 Bytes
#!/bin/bash
# this is an easy (re)deploy script for running a lflux instance w/ pbundler, gunicorn and supervisord
unset GIT_DIR
bash ./update_dependencies.sh # pbundle updates are run in here too
pbundle run ./lfluxproject/manage.py collectstatic --noinput
find ./lfluxproject/localstatic -type f | while read file; do gzip -c "$file" > "$file.gz"; done
pbundle run ./lfluxproject/manage.py syncdb
pbundle run ./lfluxproject/manage.py migrate
pbundle run ./lfluxproject/manage.py compilemessages
X=`pbundle run printenv SUPERVISOR_NAME`
pbundle run sudo supervisorctl restart $X