Fix asset path in asset fingeprinter

The asset fingerprinter was hard coded to always point to `/static`.

It needs to change depending on which environment the app is running
in.
This commit is contained in:
Chris Hill-Scott
2018-11-29 13:06:10 +00:00
parent 9541c02309
commit dd711f51b3
3 changed files with 17 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ def create_app(application):
notify_environment = os.environ['NOTIFY_ENVIRONMENT']
application.config.from_object(configs[notify_environment])
asset_fingerprinter._asset_root = application.config['ASSET_PATH']
init_app(application)
antivirus_client.init_app(application)