master
parent
81d485842e
commit
142f4b2147
@ -1,9 +1,10 @@ |
||||
echo "启动成功" |
||||
sleep 10 |
||||
mkdir -p upload/images |
||||
python manage.py migrate |
||||
# python manage.py runserver 0.0.0.0:8000 |
||||
# /var/log/django.log |
||||
gunicorn \ |
||||
--workers 8 \ |
||||
--bind 0.0.0.0:8000 \ |
||||
djangoProject.wsgi:application |
||||
python manage.py collectstatic |
||||
gunicorn --workers 8 \ |
||||
--bind 0.0.0.0:8000 \ |
||||
djangoProject.wsgi:application \ |
||||
--log-level info \ |
||||
--access-logfile /var/log/myblog.log |
Loading…
Reference in new issue