Created
September 13, 2014 13:09
-
-
Save tobigue/be88d84f20e7a98d72bd to your computer and use it in GitHub Desktop.
Serve files from a directory locally
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
python -c " | |
import flask | |
f=flask.Flask('a', static_folder='./') | |
@f.route('/<path:p>') | |
def s(p): return f.send_static_file(p) | |
f.run() | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment