Skip to content

Commit

Permalink
do not use .external assets yet
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed May 4, 2019
1 parent 96ee222 commit bc5fcbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion ckan/config/deployment.ini_tmpl
Expand Up @@ -162,7 +162,6 @@ ckan.feeds.author_link =

## Webassets Settings
#ckan.webassets.use_x_sendfile = false
#ckan.webassets.external = false
#ckan.webassets.path = /var/lib/ckan/webassets


Expand Down
9 changes: 4 additions & 5 deletions ckan/config/middleware/flask_app.py
Expand Up @@ -504,9 +504,8 @@ def _setup_webassets(app):
config.get('ckan.webassets.use_x_sendfile')
)

if not toolkit.asbool(config.get('ckan.webassets.external')):
webassets_folder = get_webassets_path()
webassets_folder = get_webassets_path()

@app.route('/webassets/<path:path>')
def webassets(path):
return send_from_directory(webassets_folder, path)
@app.route('/webassets/<path:path>')
def webassets(path):
return send_from_directory(webassets_folder, path)

0 comments on commit bc5fcbb

Please sign in to comment.