Skip to content

Commit

Permalink
[#3011] Temporarily use debug settings for
Browse files Browse the repository at this point in the history
fanstatic as production settings break recline map
  • Loading branch information
johnglover committed Nov 13, 2012
1 parent 6c44375 commit 58f0ad6
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions ckan/config/middleware.py
Expand Up @@ -70,22 +70,32 @@ def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
#app = QueueLogMiddleware(app)

# Fanstatic
if asbool(config.get('debug', False)):
fanstatic_config = {
'versioning': True,
'recompute_hashes': True,
'minified': False,
'bottom': True,
'bundle': False,
}
else:
fanstatic_config = {
'versioning': True,
'recompute_hashes': False,
'minified': True,
'bottom': True,
'bundle': True,
}
# TODO: ignoring config settings and using debug settings for now
# as recline map breaks with the production settings.
# Remove this when fixed.
fanstatic_config = {
'versioning' : True,
'recompute_hashes' : True,
'minified' : False,
'bottom' : True,
'bundle' : False,
}
# if asbool(config.get('debug', False)):
# fanstatic_config = {
# 'versioning' : True,
# 'recompute_hashes' : True,
# 'minified' : False,
# 'bottom' : True,
# 'bundle' : False,
# }
# else:
# fanstatic_config = {
# 'versioning' : True,
# 'recompute_hashes' : False,
# 'minified' : True,
# 'bottom' : True,
# 'bundle' : True,
# }
app = Fanstatic(app, **fanstatic_config)

if asbool(full_stack):
Expand Down

0 comments on commit 58f0ad6

Please sign in to comment.