Update first commit
This commit is contained in:
14
django-launcher.pro.sh
Normal file
14
django-launcher.pro.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
|
||||
# Start server
|
||||
echo "Starting server"
|
||||
uvicorn --host 0.0.0.0 --port 8000 chapps.asgi:application
|
Reference in New Issue
Block a user