10 lines
264 B
Bash
Executable file
10 lines
264 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
# Run database migrations
|
|
echo "Running database migrations..."
|
|
python manage.py migrate --noinput
|
|
|
|
# Start Gunicorn server
|
|
echo "Starting Gunicorn server..."
|
|
exec gunicorn --bind 0.0.0.0:8000 --workers 3 --timeout 120 openforce.wsgi:application
|