def create_app(): app = Flask(__name__) app.config.from_object('webapps.configs.trymongo') # Overrides the config with any environment variables that might # be set update_config(app, 'TRY') configure_logging(app) app.register_blueprint(trymongo) return app
def create_app(): app = Flask(__name__) app.config.from_object('webapps.configs.ivs') # Overrides the config with any environment variables that might # be set update_config(app, 'IVS', environment) configure_logging(app, environment) _logger.info('test') app.register_blueprint(ivs) return app
def create_app(): app = Flask(__name__) app.config.from_object('webapps.configs.ivs') # Overrides the config with any environment variables that might # be set update_config(app, 'IVS') configure_logging(app) _logger.info('test') app.register_blueprint(ivs) return app
def create_app(): app = Flask(__name__, **static_options) if _flask_serve_static: app.add_url_rule(rule='/', view_func=lambda: redirect('index.html', 302)) app.config.from_object('webapps.configs.server') # Overrides the config with any environment variables that might # be set update_config(app, 'SERVER', environment) configure_logging(app, environment) app.register_blueprint(mws) crontab.run_scheduler(app) return app