|
|
@ -24,9 +24,15 @@ ui_bp = Blueprint('ui', __name__,
|
|
|
|
'build', 'assets'),
|
|
|
|
'build', 'assets'),
|
|
|
|
static_url_path='/assets')
|
|
|
|
static_url_path='/assets')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if os.path.exists(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))),'frontend', 'build',
|
|
|
|
|
|
|
|
'images')):
|
|
|
|
|
|
|
|
static_directory = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'frontend', 'build',
|
|
|
|
|
|
|
|
'images')
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
static_directory = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'frontend', 'public',
|
|
|
|
|
|
|
|
'images')
|
|
|
|
static_bp = Blueprint('images', __name__,
|
|
|
|
static_bp = Blueprint('images', __name__,
|
|
|
|
static_folder=os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))),
|
|
|
|
static_folder=static_directory, static_url_path='/images')
|
|
|
|
'frontend', 'build', 'images'), static_url_path='/images')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ui_bp.register_blueprint(static_bp)
|
|
|
|
ui_bp.register_blueprint(static_bp)
|
|
|
|
|
|
|
|
|
|
|
|