mirror of
https://github.com/kennethreitz-archive/patch-service.git
synced 2026-06-05 07:16:13 +00:00
20 lines
390 B
Python
Executable File
20 lines
390 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from flaskext.script import Manager
|
|
from flask.ext.celery import install_commands as install_celery
|
|
|
|
from patchmaster import app
|
|
from patchmaster.core import db
|
|
|
|
|
|
manager = Manager(app)
|
|
install_celery(manager)
|
|
|
|
@manager.command
|
|
def syncdb():
|
|
"""Initializes the database."""
|
|
db.create_all()
|
|
|
|
if __name__ == "__main__":
|
|
manager.run() |