django-template/django-launcher.dev.sh

20 lines
429 B
Bash
Raw Normal View History

2021-04-01 09:48:35 +02:00
#!/bin/sh
# Collect static files
echo "Collect static files"
python3 manage.py collectstatic --noinput
# Apply database migrations
echo "Apply database migrations"
python3 manage.py makemigrations
python3 manage.py migrate
2021-04-27 08:43:47 +02:00
# Apply crons
2021-04-29 09:34:56 +02:00
service cron start
2021-04-27 08:43:47 +02:00
python3 manage.py crontab remove
python3 manage.py crontab add
2021-04-01 09:48:35 +02:00
# Start server
echo "Starting server"
uvicorn --host 0.0.0.0 --port 8000 --reload chapps.asgi:application