mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
update readme & usage
This commit is contained in:
parent
a925c045be
commit
0b8d51d116
@ -27,5 +27,14 @@ Example with test app :
|
||||
|
||||
$ cd examples
|
||||
$ gunicorn --workers=2 test:app
|
||||
|
||||
|
||||
For django projects use the `gunicorn_django` command.
|
||||
|
||||
$ cd yourdjangoproject
|
||||
$ gunicorn_django --workers=2
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ import sys
|
||||
import django.core.handlers.wsgi
|
||||
import gunicorn
|
||||
|
||||
__usage__ = "%prog [OPTIONS] APP_MODULE"
|
||||
__usage__ = "%prog [OPTIONS]"
|
||||
|
||||
PROJECT_PATH = os.getcwd()
|
||||
PROJECT_NAME = os.path.split(PROJECT_PATH)[-1]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user