13 lines
313 B
Bash
13 lines
313 B
Bash
#!/bin/sh
|
|
|
|
# Collect static files
|
|
echo "Collect static files"
|
|
python manage.py collectstatic --noinput
|
|
|
|
# Apply database migrations
|
|
echo "Apply database migrations"
|
|
python manage.py migrate
|
|
|
|
# Start server
|
|
echo "Django running on http://localhost:8000 in production mode"
|
|
gunicorn -w 4 -b 0.0.0.0:8000 sikweb.wsgi |