mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user