Commit 1dbcf4e3 authored by ibuler's avatar ibuler

[Update] 数据库make migration移动到gunicorn

parent 95fcd60f
...@@ -128,6 +128,7 @@ def parse_service(s): ...@@ -128,6 +128,7 @@ def parse_service(s):
def start_gunicorn(): def start_gunicorn():
print("\n- Start Gunicorn WSGI HTTP Server") print("\n- Start Gunicorn WSGI HTTP Server")
prepare()
service = 'gunicorn' service = 'gunicorn'
bind = '{}:{}'.format(HTTP_HOST, HTTP_PORT) bind = '{}:{}'.format(HTTP_HOST, HTTP_PORT)
log_format = '%(h)s %(t)s "%(r)s" %(s)s %(b)s ' log_format = '%(h)s %(t)s "%(r)s" %(s)s %(b)s '
...@@ -220,7 +221,6 @@ def start_service(s): ...@@ -220,7 +221,6 @@ def start_service(s):
print(time.ctime()) print(time.ctime())
print('Jumpserver version {}, more see https://www.jumpserver.org'.format( print('Jumpserver version {}, more see https://www.jumpserver.org'.format(
__version__)) __version__))
prepare()
services_handler = { services_handler = {
"gunicorn": start_gunicorn, "gunicorn": start_gunicorn,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment