improved/fixed serve_frontend.py to work from different base paths (change required for wsgi)

This commit is contained in:
Tobias Kurze
2019-03-26 11:57:22 +01:00
parent ebc34e396d
commit bc50e23a22

View File

@@ -11,7 +11,7 @@ from flask_pyoidc.user_session import UserSession
from backend import app
from backend.auth import oidc_auth
fe_path = os.path.join(os.getcwd(), "frontend", "dist")
fe_path = os.path.abspath(os.path.join(app.root_path, os.pardir, "frontend", "dist"))
fe_bp = Blueprint('frontend', __name__, url_prefix='/', template_folder=os.path.join(fe_path, ""))