mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-11-13 09:56:33 +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
|