mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-12-18 13:16:16 +03:00
17 lines
319 B
Bash
17 lines
319 B
Bash
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
set -o nounset
|
|
|
|
mkdir /app/staticfiles/
|
|
chmod -R +r /app/staticfiles/
|
|
|
|
|
|
python /app/manage.py collectstatic --noinput
|
|
python /app/manage.py makemigrations
|
|
python /app/manage.py migrate auth
|
|
python /app/manage.py migrate
|
|
|
|
gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app
|