Last active
November 27, 2016 17:26
-
-
Save patrys/de074b13e2c2d6df6e7eecc0f642eeb9 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env python | |
from cherrypy import wsgiserver | |
from saleor.wsgi import application | |
server = wsgiserver.CherryPyWSGIServer( | |
('0.0.0.0', 8000), application, numthreads=10) | |
try: | |
server.start() | |
except KeyboardInterrupt: | |
server.stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment