improved/fixed serve_frontend.py to work from different base paths (change required for wsgi)
This commit is contained in:
@@ -11,7 +11,7 @@ from flask_pyoidc.user_session import UserSession
|
|||||||
from backend import app
|
from backend import app
|
||||||
from backend.auth import oidc_auth
|
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, ""))
|
fe_bp = Blueprint('frontend', __name__, url_prefix='/', template_folder=os.path.join(fe_path, ""))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user