# Path: baleen/www/app.py
# def index():
# def status():
# def logs():
# 
# Path: baleen/config.py
# class MongoConfiguration(confire.Configuration):
# class ServerConfiguration(confire.Configuration):
# class BaleenConfiguration(confire.Configuration):
#     CONF_PATHS = [
#         "/etc/baleen.yaml",                      # System configuration
#         os.path.expanduser("~/.baleen.yaml"),    # User specific config
#         os.path.abspath("conf/baleen.yaml"),     # Local configuration
#     ]


from commis import Command
from baleen.www.app import app
from baleen.config import settings
# For license information, see LICENSE.txt
#
# ID: serve.py [] benjamin@bengfort.com $

"""
Run a local development version of the Baleen Flask app.
"""

##########################################################################
## Imports
##########################################################################


##########################################################################
## Command
##########################################################################

class ServeCommand(Command):

    name = 'serve'
    help = 'serve the Flask administration application'
    args = {
        '--host': {
            'metavar': 'ADDR',
            'default': settings.server.host,
            'help': 'set the host to run the app on'
        },
        '--port': {
            'metavar': 'PORT',
            'type': int,

# Path: baleen/www/app.py
# def index():
# def status():
# def logs():
# 
# Path: baleen/config.py
# class MongoConfiguration(confire.Configuration):
# class ServerConfiguration(confire.Configuration):
# class BaleenConfiguration(confire.Configuration):
#     CONF_PATHS = [
#         "/etc/baleen.yaml",                      # System configuration
#         os.path.expanduser("~/.baleen.yaml"),    # User specific config
#         os.path.abspath("conf/baleen.yaml"),     # Local configuration
#     ]


# Path: baleen/console/commands/serve.py
from commis import Command
from baleen.www.app import app
from baleen.config import settings

# For license information, see LICENSE.txt
#
# ID: serve.py [] benjamin@bengfort.com $

"""
Run a local development version of the Baleen Flask app.
"""

##########################################################################
## Imports
##########################################################################


##########################################################################
## Command
##########################################################################

class ServeCommand(Command):

    name = 'serve'
    help = 'serve the Flask administration application'
    args = {
        '--host': {
            'metavar': 'ADDR',
            'default': settings.server.host,
            'help': 'set the host to run the app on'
        },
        '--port': {
            'metavar': 'PORT',
            'type': int,

            'default': settings.server.port,