aboutsummaryrefslogtreecommitdiffstats
path: root/start.sh
blob: d5a69766287e3c4a638a41bbf5c8d6ecbd9cdc70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

echo "Preparing static files"
cd /usr/src/app
./manage.py collectstatic --no-input

echo Starting nginx.
nginx || exit 1

NUM_WORKERS=3
TIMEOUT=500

# Start Gunicorn processes
echo Starting Gunicorn.
exec gunicorn gitrefinery.wsgi:application \
    --workers $NUM_WORKERS \
    --timeout $TIMEOUT \
    --bind 127.0.0.1:8080