Created
February 5, 2016 18:28
-
-
Save kgriffs/32768653b9173df00047 to your computer and use it in GitHub Desktop.
Sample showing how to self-host a Falcon app
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
import falcon | |
app = falcon.API() | |
if __name__ == '__main__': | |
from wsgiref.simple_server import make_server | |
server = make_server('localhost', 8000, app) | |
print("Listening on localhost:8000") | |
server.serve_forever() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Execute from the command line like so: