Skip to content

Commit

Permalink
perf:启动项目增加IP和端口选项
Browse files Browse the repository at this point in the history
  • Loading branch information
ktianc committed Jun 6, 2023
1 parent 9b0918e commit 152f726
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kinit-api/application/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""
系统版本
"""
VERSION = "1.8.0"
VERSION = "1.8.1"

"""安全警告: 不要在生产中打开调试运行!"""
DEBUG = True
Expand Down
8 changes: 5 additions & 3 deletions kinit-api/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# @version : 1.0
# @Creaet Time : 2021/10/19 15:47
# @Create Time : 2021/10/19 15:47
# @File : main.py
# @IDE : PyCharm
# @desc : 主程序入口
Expand All @@ -25,7 +25,6 @@
from core.event import lifespan
from utils.tools import import_modules


shell_app = typer.Typer()


Expand Down Expand Up @@ -67,7 +66,10 @@ def create_app():


@shell_app.command()
def run(host: str=typer.Option(default='0.0.0.0', help='监听主机IP,默认开放给本网络所有主机'), port: int=typer.Option(default=9000, help='监听端口')):
def run(
host: str = typer.Option(default='0.0.0.0', help='监听主机IP,默认开放给本网络所有主机'),
port: int = typer.Option(default=9000, help='监听端口')
):
"""
启动项目
Expand Down

0 comments on commit 152f726

Please sign in to comment.