Skip to content

Instantly share code, notes, and snippets.

@ronbeltran
Created August 12, 2012 11:05
Show Gist options
  • Save ronbeltran/3331371 to your computer and use it in GitHub Desktop.
Save ronbeltran/3331371 to your computer and use it in GitHub Desktop.
Serve static file at Heroku with Python
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