init seems to be working now
@@ -9,10 +9,16 @@ from requests import get
def create_app(test_config=None):
# Called by the flask run command in the cli.
GUI_BUILD_DIR = "/elpis-gui/build"
+ GUI_PUBLIC_DIR = "/elpis-gui/public"
# Variable to control the use of a proxy to support webpackdevserver
WEBPACK_DEV_SERVER_PROXY = False
+ if WEBPACK_DEV_SERVER_PROXY:
+ app = Flask(__name__,
+ instance_relative_config=True,
+ static_folder=GUI_PUBLIC_DIR)
+ else:
# Setup static resources
# create and configure the app
# auto detect for yarn watch or yarn build
@@ -86,7 +92,7 @@ def create_app(test_config=None):
@app.route('/favicon.ico')
def favicon():
- with open(f"{GUI_BUILD_DIR}/favicon.ico", "rb") as fin:
+ with open(f"{GUI_PUBLIC_DIR}/favicon.ico", "rb") as fin:
return fin.read()
return app
