cf-startup.sh
set -e
set -x
if [ $CF_INSTANCE_INDEX = '0' ]; then
python manage.py migrate --fake-initial
python manage.py rebuild_index --noinput --remove
python manage.py setup_cors
fi
# TODO: Download wkhtmltox from CI
python manage.py fetch_wkhtmltox
python manage.py collectstatic --noinput
gunicorn notice_and_comment.wsgi:application