1 Star 1 Fork 0

卷毛1996/FXTest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
manage.py 954 Bytes
一键复制 编辑 原始数据 按行查看 历史
# encoding: utf-8
"""
@author: lileilei
@file: manage.py
@time: 2017/7/13 16:39
"""
'''主运行文件,
使用gevent异步请求,'''
from app import app
from flask import Blueprint
from flask_restplus import Api
from app import sched
from app.home import home
from app.mock import mock
from app.task import task
from app.users import user
from app.case import case
from app.Interface import interfac
from gevent.pywsgi import WSGIServer
from gevent import monkey
monkey.patch_all()
app.register_blueprint(home,url_prefix='/home')
app.register_blueprint(mock)
app.register_blueprint(task)
app.register_blueprint(user)
app.register_blueprint(case)
app.register_blueprint(interfac)
from config import Config
app.config.from_object('config')
def app_start():
sched.start()
http_server = WSGIServer(('127.0.0.1', 5000), app)
http_server.serve_forever()
if __name__ == '__main__':
#app_start()
app.run(debug=True)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Stan1996/FXTest.git
git@gitee.com:Stan1996/FXTest.git
Stan1996
FXTest
FXTest
master

搜索帮助