agenda_culturel/deployment/scripts/backend/start.sh
Jean-Marie Favreau 5962375713 Première version rudimentaire :
- prise en charge du français
- différentes URLs
- templates vides
2023-10-14 15:34:44 +02:00

16 lines
557 B
Bash

#!/bin/bash
# Run migrations, collect static files and start server
if [ "$APP_ENV" != "prod" ]; then
python manage.py makemigrations --noinput
python manage.py migrate --noinput
python manage.py compilemessages
python manage.py runserver "$APP_HOST":"$APP_PORT"
else
python manage.py makemigrations --noinput
python manage.py migrate --noinput
python manage.py collectstatic --noinput
python manage.py compilemessages
gunicorn "$APP_NAME".wsgi:application --bind "$APP_HOST":"$APP_PORT" --workers 3 --log-level=info
fi