#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from app import *
from flask.ext.cors import CORS
from flask.ext.script import Shell, Manager, Server

app = create_app(os.getenv('FLASK_CONFIG') or 'production')
CORS(app)
# db.drop_all(app=app)
db.create_all(app=app)
manager = Manager(app)


def make_shell_context():
    return dict(app=app)


manager.add_command("shell", Shell(make_context=make_shell_context))
manager.add_command("runserver", Server(host="0.0.0.0", port=5000))


@manager.command
def deploy():
    """Run deployment tasks."""
    pass


if __name__ == '__main__':
    manager.run()

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from app import *
from flask.ext.cors import CORS
from flask.ext.script import Shell, Manager, Server

app = create_app(os.getenv('FLASK_CONFIG') or 'production')
CORS(app)
# db.drop_all(app=app)
db.create_all(app=app)
manager = Manager(app)


def make_shell_context():
    return dict(app=app)


manager.add_command("shell", Shell(make_context=make_shell_context))
manager.add_command("runserver", Server(host="0.0.0.0", port=5000))


@manager.command
def deploy():
    """Run deployment tasks."""
    pass


if __name__ == '__main__':
    manager.run()

#!/usr/bin/env python # -*- coding: utf-8 -*- # db.drop_all(app=app) Run deployment tasks.