File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -273,8 +273,11 @@ def print_errors(errors):
273273 u'dataset - specify its name' )
274274 args = parser .parse_args ()
275275 assert args .config , u'You must supply a --config'
276+ print (u'Loading config' )
276277 try :
277- from ckan .lib .cli import load_config
278+ from ckan .cli import load_config
279+ from ckan .config .middleware import make_app
280+ make_app (load_config (args .config ))
278281 except ImportError :
279282 # for CKAN 2.6 and earlier
280283 def load_config (config ):
@@ -287,9 +290,7 @@ class Options(object):
287290 cmd .options .config = config
288291 cmd ._load_config ()
289292 return
290-
291- print (u'Loading config' )
292- load_config (args .config )
293+ load_config (args .config )
293294 if not args .dataset :
294295 migrate_all_datasets ()
295296 wipe_activity_detail (delete_activity_detail = args .delete )
You can’t perform that action at this time.
0 commit comments