fix outside of application context

This commit is contained in:
pycook
2016-01-01 11:13:44 +08:00
committed by pycook
parent bd94bdc575
commit eb092d4983
6 changed files with 34 additions and 37 deletions

View File

@@ -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