Ejemplo n.º 1
0
def player(clean=False):
    """Run the player app."""
    init_player()
    if clean:
        clean_player()
    from player import create_app
    app = create_app()
    app.run(host=app.config.get('HOST'), port=app.config.get('PORT'))
 def setUp(self):
     self.FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'files')
     self.app = create_app(
         TESTING=True,
         FILES_DIR=self.FILES_DIR
     ).test_client()
Ejemplo n.º 3
0
# -*- coding: utf-8 -*-

from player import create_app

app = create_app()
"""
gunicorn --bind 127.0.0.1:8000 wsgi:app

"""