Skip to content

Instantly share code, notes, and snippets.

@patrys
Created November 17, 2016 12:02
Show Gist options
  • Save patrys/e17de1394249a21125678f546eaa7294 to your computer and use it in GitHub Desktop.
Save patrys/e17de1394249a21125678f546eaa7294 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from tornado import httpserver, ioloop, wsgi
from saleor.wsgi import application
container = wsgi.WSGIContainer(application)
server = httpserver.HTTPServer(container)
server.bind(8000)
server.start(0)
ioloop.IOLoop.current().start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment