mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
35382f24bb
commit
fd3180445f
@ -4,6 +4,7 @@
|
||||
# See the NOTICE for more information.
|
||||
|
||||
from optparse import make_option
|
||||
import sys
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
@ -109,7 +110,9 @@ class Command(BaseCommand):
|
||||
raise CommandError('Usage is run_gunicorn %s' % self.args)
|
||||
|
||||
if addrport:
|
||||
sys.argv = sys.argv[:-1]
|
||||
options['bind'] = addrport
|
||||
|
||||
admin_media_path = options.pop('admin_media_path', '')
|
||||
|
||||
DjangoApplicationCommand(options, admin_media_path).run()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user