初始化项目结构目录添加代码
This commit is contained in:
parent
82f667dff0
commit
c99167382f
|
|
@ -0,0 +1,41 @@
|
|||
2022-05-26 09:43:15 | MainThread:8665789952 | <module>:__init__:16 - INFO - start the automation service development environment
|
||||
2022-05-26 09:43:15 | MainThread:8665789952 | <module>:__init__:22 - INFO - loading environment configuration file
|
||||
2022-05-26 09:43:15 | MainThread:8665789952 | create_app:app:17 - INFO - loading application configuration
|
||||
2022-05-26 09:43:15 | MainThread:8665789952 | create_app:app:19 - INFO - create FastApi app object
|
||||
2022-05-26 09:43:15 | MainThread:8665789952 | create_app:app:30 - INFO - Start registering middleware
|
||||
2022-05-26 09:43:15 | MainThread:8665789952 | create_app:app:41 - INFO - Application started successfully:CORSMiddleware
|
||||
2022-05-26 09:43:15 | MainThread:8665789952 | create_app:app:42 - INFO - Server address http://192.168.10.80:8000
|
||||
2022-05-26 09:43:15 | MainThread:8665789952 | create_app:app:43 - INFO - Api doc address http://192.168.10.80:8000/docs
|
||||
2022-05-26 09:43:15 | MainThread:8665789952 | create_app:app:44 - INFO - Api redoc address http://192.168.10.80:8000/redoc
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | <module>:__init__:16 - INFO - start the automation service development environment
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | <module>:__init__:22 - INFO - loading environment configuration file
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:17 - INFO - loading application configuration
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:19 - INFO - create FastApi app object
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:30 - INFO - Start registering middleware
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:41 - INFO - Application started successfully:CORSMiddleware
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:42 - INFO - Server address http://192.168.10.80:8000
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:43 - INFO - Api doc address http://192.168.10.80:8000/docs
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:44 - INFO - Api redoc address http://192.168.10.80:8000/redoc
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:17 - INFO - loading application configuration
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:19 - INFO - create FastApi app object
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:30 - INFO - Start registering middleware
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:41 - INFO - Application started successfully:CORSMiddleware
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:42 - INFO - Server address http://192.168.10.80:8000
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:43 - INFO - Api doc address http://192.168.10.80:8000/docs
|
||||
2022-05-26 09:43:16 | MainThread:8675304960 | create_app:app:44 - INFO - Api redoc address http://192.168.10.80:8000/redoc
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | <module>:__init__:16 - INFO - start the automation service development environment
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | <module>:__init__:22 - INFO - loading environment configuration file
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:17 - INFO - loading application configuration
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:19 - INFO - create FastApi app object
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:30 - INFO - Start registering middleware
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:41 - INFO - Application started successfully:CORSMiddleware
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:42 - INFO - Server address http://192.168.10.80:8000
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:43 - INFO - Api doc address http://192.168.10.80:8000/docs
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:44 - INFO - Api redoc address http://192.168.10.80:8000/redoc
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:17 - INFO - loading application configuration
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:19 - INFO - create FastApi app object
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:30 - INFO - Start registering middleware
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:41 - INFO - Application started successfully:CORSMiddleware
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:42 - INFO - Server address http://192.168.10.80:8000
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:43 - INFO - Api doc address http://192.168.10.80:8000/docs
|
||||
2022-05-26 09:43:44 | MainThread:8664471040 | create_app:app:44 - INFO - Api redoc address http://192.168.10.80:8000/redoc
|
||||
12
main.py
12
main.py
|
|
@ -3,3 +3,15 @@
|
|||
# @Email :508737091@qq.com
|
||||
# @Author :qiangyanwen
|
||||
# @File :main.py.py
|
||||
|
||||
import uvicorn
|
||||
|
||||
from app import create_app
|
||||
from config import Debug
|
||||
from utils.system import host
|
||||
from config import settings
|
||||
app = create_app()
|
||||
|
||||
if __name__ == '__main__':
|
||||
uvicorn.run(app="main:app", host=host, port=settings.PROJECT.PORT, reload=Debug)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue