You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
333 B
18 lines
333 B
#!/bin/sh
|
|
cd /app
|
|
|
|
if [ $# -eq 0 ]; then
|
|
nginx
|
|
gunicorn DjangoBlog.wsgi:application \
|
|
--name djangoblog \
|
|
--user root \
|
|
--group root \
|
|
--bind 127.0.0.1:8000 \
|
|
--log-level=debug \
|
|
--log-file=- \
|
|
--workers $(grep -c ^processor /proc/cpuinfo) \
|
|
--worker-class gevent
|
|
else
|
|
python3 ./manage.py $1
|
|
fi
|