Created
August 12, 2012 11:05
-
-
Save ronbeltran/3331371 to your computer and use it in GitHub Desktop.
Serve static file at Heroku with Python
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 wsgiref.simple_server import make_server | |
import static | |
app = static.Cling('_site') | |
def main(): | |
make_server('localhost', 8000, static.Cling('_site')).serve_forever() | |
if __name__=='__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment