更改项目启动方式

This commit is contained in:
不胜舟
2023-05-29 00:26:42 +08:00
parent 384385dd10
commit c760302ff8
4 changed files with 9 additions and 5 deletions
+7 -1
View File
@@ -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 命令启动项目
#### 命令行创建视图
-4
View File
@@ -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'
+1
View File
@@ -0,0 +1 @@
flask --app app.py run -h 0.0.0.0 -p 8000 --debug
Executable
+1
View File
@@ -0,0 +1 @@
flask --app app.py run -h 0.0.0.0 -p 8000 --debug