1 Star 1 Fork 0

ManiacRaTT/HospitalFrontDesk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.py 2.51 KB
一键复制 编辑 原始数据 按行查看 历史
ManiacRaTT 提交于 2023-01-11 09:51 . sql
# -*- coding: utf-8 -*-
import asyncio
import sys
import time
from concurrent.futures.thread import ThreadPoolExecutor
import peewee_async
import tornado.ioloop
# from KcangNacos import nacos
from tornado.options import parse_command_line, options
from tornado.platform.asyncio import AsyncIOMainLoop
# import uvloop
from config import make_app
# 接受命令行参数
# from config import make_app
from database.xMySQL_1 import *
parse_command_line()
# start_old
app = make_app()
# start_new
# app = Application()
# 启动项目
if __name__ == "__main__":
print("""
_oo0oo_
o8888888o
88" . "88
(| -_- |)
0\ = /0
___/`---'\___
.' \| |# '.
/ \||| : |||# \
/ _||||| -:- |||||- \
| | \ - #/ | |
| \_| ''\---/'' |_/ |
\ .-\__ '-' ___/-. /
___'. .' /--.--\ `. .'___
."" '< `.___\_<|>_/___.' >' "".
| | : `- \`.;`\ _ /`;.`/ - ` : | |
\ \ `_. \_ __\ /__ _/ .-` / /
=====`-.____`.___ \_____/___.-`___.-'=====
`=---='
""")
database.is_closed()
parse_command_line()
# # nacosServer = nacos.nacos(ip=nacosIp, port=nacosPort)
# # nacosServer.registerService(serviceIp=nacosIp, servicePort=nacosPort, serviceName="pythonHe",
# # namespaceId="", groupName="")
AsyncIOMainLoop().install()
app.objects = objects
app.executor = ThreadPoolExecutor(16)
app.listen(8080)
asyncio.get_event_loop().run_forever()
# tornado.ioloop.IOLoop.current().start()
# # sys.platform = 'win64'
# # tornado.process.fork_processes(2)
# # httpServer = tornado.httpserver.HTTPServer(app)
# # httpServer.start(5)
# httpServer = tornado.httpserver.HTTPServer(app) # 设置HTTP服务器
# httpServer.listen(8080) # 绑定在指定端口
# httpServer.executor = ThreadPoolExecutor(16)
# tornado.ioloop.IOLoop.current().start() # 启动
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/maniacratt/HospitalFrontDesk.git
git@gitee.com:maniacratt/HospitalFrontDesk.git
maniacratt
HospitalFrontDesk
HospitalFrontDesk
master

搜索帮助