mirror of
https://github.com/veops/cmdb.git
synced 2025-08-11 01:33:11 +08:00
fix outside of application context
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# encoding=utf-8
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from flask_script import Command, Option
|
||||
|
||||
@@ -7,7 +7,7 @@ class GunicornServer(Command):
|
||||
description = 'Run the app within Gunicorn'
|
||||
|
||||
def __init__(self, host='127.0.0.1', port=5000, workers=8,
|
||||
worker_class="gevent", daemon=False):
|
||||
worker_class="sync", daemon=False):
|
||||
self.port = port
|
||||
self.host = host
|
||||
self.workers = workers
|
||||
|
Reference in New Issue
Block a user