Move docker related features to a separate module

This commit is contained in:
Pierre Jaury
2016-11-09 16:38:17 +01:00
parent 4246179b88
commit bbf71b262e
2 changed files with 1 additions and 11 deletions

View File

@@ -51,9 +51,6 @@ scheduler = background.BackgroundScheduler()
manager = flask_script.Manager(app)
manager.add_command('db', flask_migrate.MigrateCommand)
# Connect to the Docker socket
dockercli = docker.Client(base_url=app.config['DOCKER_SOCKET'])
# Task scheduling
if not app.debug or os.environ.get('WERKZEUG_RUN_MAIN') == 'true':
scheduler.start()