Created
September 18, 2012 22:37
-
-
Save skyler/3746427 to your computer and use it in GitHub Desktop.
run.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from werkzeug import SharedDataMiddleware | |
import os | |
import logging | |
from panel import app | |
# Serve static files through Flask during development | |
app.wsgi_app = SharedDataMiddleware(app.wsgi_app, { | |
'/': os.path.join(os.path.dirname(__file__), 'static') | |
}) | |
app.run(host='0.0.0.0', debug=True) | |
handler = logging.StreamHandler() | |
handler.setLevel(logging.DEBUG) | |
app.logger.addHandler(handler) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment