#!/usr/bin/env python
"""
Run the Varda REST server.

To reset the database:

    from varda import db
    db.drop_all()
    db.create_all()

"""


from flaskext.script import Manager
from flaskext.celery import install_commands as install_celery_commands

from varda import app, db


manager = Manager(app)
install_celery_commands(manager)


@manager.command
def createdb():
    """
    Create the SQLAlchemy database.
    """
    db.drop_all()
    db.create_all()


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

#!/usr/bin/env python
"""
Run the Varda REST server.

To setup the database:

    create database varda;
    create database vardacelery;
    create database vardaresults;
    grant all privileges on varda.* to varda@localhost identified by 'varda';
    grant all privileges on vardacelery.* to varda@localhost identified by 'varda';
    grant all privileges on vardaresults.* to varda@localhost identified by 'varda';

To reset the database:

    from varda import db
    db.drop_all()
    db.create_all()

"""


from flaskext.script import Manager
from flaskext.celery import install_commands as install_celery_commands

from varda import app, db


manager = Manager(app)
install_celery_commands(manager)


@manager.command
def createdb():
    """
    Create the SQLAlchemy database.
    """
    db.drop_all()
    db.create_all()


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

Add some notes on database setup
Add some notes on database setup
