Skip to content

Commit 90329d0

Browse files
committed
refatcor:调整文件上传默认目录 close #127
1 parent fd5529d commit 90329d0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.vscode
77
*.pytest_cache/
88
*.pyc
9-
app/assets/*
9+
assets
1010
logs
1111

1212
# Created by https://www.toptal.com/developers/gitignore/api/python

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def set_global_config(**kwargs):
5353
def create_app(register_all=True, **kwargs):
5454
# http wsgi server托管启动需指定读取环境配置
5555
load_dotenv(".flaskenv")
56-
app = Flask(__name__, static_folder="./assets")
56+
app = Flask(__name__, static_folder="../assets")
5757
load_app_config(app)
5858
if register_all:
5959
from lin import Lin

app/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class BaseConfig(object):
3434

3535
# 默认文件上传配置
3636
FILE = {
37-
"STORE_DIR": "app/assets",
37+
"STORE_DIR": "assets",
3838
"SINGLE_LIMIT": 1024 * 1024 * 2,
3939
"TOTAL_LIMIT": 1024 * 1024 * 20,
4040
"NUMS": 10,

0 commit comments

Comments
 (0)