diff --git a/README.md b/README.md index 8df5325..60f16a3 100644 --- a/README.md +++ b/README.md @@ -139,9 +139,15 @@ flask db init flask db migrate flask db upgrade flask admin init + +# windoes +run.bat + +# linux +chmod +x run.sh +./run.sh ``` -执行 python app.py 命令启动项目 #### 命令行创建视图 diff --git a/applications/config.py b/applications/config.py index 0939033..a3ffcb0 100644 --- a/applications/config.py +++ b/applications/config.py @@ -6,10 +6,6 @@ from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore class BaseConfig: - DEBUG = True - HOST = '127.0.0.1' - PORT = 5000 - SUPERADMIN = 'admin' SYSTEM_NAME = 'Pear Admin' diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..aded26a --- /dev/null +++ b/run.bat @@ -0,0 +1 @@ +flask --app app.py run -h 0.0.0.0 -p 8000 --debug \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..aded26a --- /dev/null +++ b/run.sh @@ -0,0 +1 @@ +flask --app app.py run -h 0.0.0.0 -p 8000 --debug \ No newline at end of file