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()
# -*- coding: utf-8 -*- from player import create_app app = create_app() """ gunicorn --bind 127.0.0.1:8000 wsgi:app """