コード例 #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'))
コード例 #2
0
 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()
コード例 #3
0
ファイル: wsgi.py プロジェクト: pbillerot/drumservice
# -*- coding: utf-8 -*-

from player import create_app

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

"""