workout/bash/run-prod.sh

4 lines
179 B
Bash

#!/bin/sh
yes yes | pipenv run python manage.py migrate && \
pipenv run python manage.py collectstatic --noinput && \
pipenv run gunicorn workout.wsgi -b 0.0.0.0:8000 --log-file -