You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
459 B

#!/usr/bin/env bash
set -e
set -u
export ENV=prod
export BRANCH=prod
cd /opt/app
# Collect static files
echo "Collect static files"
python3 manage.py collectstatic --noinput
# Make database migrations
echo "Make database migrations"
python3 manage.py makemigrations
# Apply database migrations
echo "Apply database migrations"
python3 manage.py migrate myauth --noinput
python3 manage.py migrate --noinput
supervisord -c /opt/app/conf/supervisor.conf