code: def make_app(env, commandadapter=None):
      
      mconfig = import_module('app.config.%s' % env, pass_errors=True)
      if mconfig is None and paths.app_exists():
          print(colored('Configuration for "%s" environment is not found' % env, 'red'))
          return None
      mstart = import_module('app.start')
      mroutes = import_module('app.routes')
      mcontrollers = import_module('app.controllers')
      before = mstart.before
  
      return Glim(commandadapter, mconfig, mroutes, mcontrollers, env, before)
docs: Function creates an app given environment