Created
April 6, 2020 10:46
-
-
Save roma-guru/42fb3835440ea73cacc40c6dea2d0819 to your computer and use it in GitHub Desktop.
Simplest FCGI app via Flup
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
def myapp(environ, start_response): | |
start_response('200 OK', [('Content-Type', 'text/plain')]) | |
return ['Hello World!\n'] | |
if __name__ == '__main__': | |
from flup.server.fcgi import WSGIServer | |
WSGIServer(myapp).run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment