You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
ROLE="${ROLE:-app}"
|
|
|
|
|
|
|
|
case "$ROLE" in
|
|
|
|
app)
|
|
|
|
rm -rf static/*
|
|
|
|
python manage.py collectstatic
|
|
|
|
python manage.py migrate
|
|
|
|
gunicorn musicrate.wsgi -b 0.0.0.0:8000 "$@"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo 'unknown role "'"$ROLE"'"' >&2
|
|
|
|
sleep 1
|
|
|
|
;;
|
|
|
|
esac
|