后端增加文件服务,可直接访问前端已打包的页面,无需再开一个前端端口
This commit is contained in:
parent
731e78f7ba
commit
0dfd48da68
|
@ -2,7 +2,7 @@ from flask import Flask
|
|||
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
app = Flask(__name__, static_folder='../../fe/dist/', static_url_path='/')
|
||||
|
||||
app.config.from_object('app.config.setting')
|
||||
app.config.from_object('app.config.secure')
|
||||
|
|
Loading…
Reference in New Issue