This commit is contained in:
Giorgos Logiotatidis 2017-11-27 11:31:41 +02:00 коммит произвёл Paul McLanahan
Родитель 2ec8f12254
Коммит 30561615e3
3 изменённых файлов: 15 добавлений и 0 удалений

1
Procfile Normal file
Просмотреть файл

@ -0,0 +1 @@
web: ./bin/run-prod.sh

7
bin/run-common.sh Executable file
Просмотреть файл

@ -0,0 +1,7 @@
#!/bin/bash
READ_ONLY=$(echo "${READ_ONLY:-false}" | tr '[:upper:]' '[:lower:]')
if [[ "$READ_ONLY" == "false" ]]; then
python manage.py migrate --noinput
fi

7
bin/run-prod.sh Executable file
Просмотреть файл

@ -0,0 +1,7 @@
#!/bin/sh
./bin/run-common.sh
echo "$GIT_SHA" > static/revision.txt
exec gunicorn kitsune.wsgi.app --config wsgi/config.py