44 Star 441 Fork 178

水漫门廷 / easy-flask-json-mvc-socketio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jobRun.py 451 Bytes
一键复制 编辑 原始数据 按行查看 历史
'''
@Author: hua
@Date: 2019-12-18 17:22:18
@description:
@LastEditors : hua
@LastEditTime : 2019-12-18 17:23:51
'''
import environment
environment.init("job")
from app import app, sched
from flask_cors import CORS
# https://www.cnblogs.com/franknihao/p/7202253.html uwsgi配置
app = app
CORS(app, supports_credentials=True)
if __name__ == '__main__':
#开始任务
sched.start()
app.debug = False
app.run(host='0.0.0.0', port=500)
Python
1
https://gitee.com/huashiyuting/flask.git
git@gitee.com:huashiyuting/flask.git
huashiyuting
flask
easy-flask-json-mvc-socketio
master

搜索帮助