Skip to content

Instantly share code, notes, and snippets.

@roma-guru
Created April 6, 2020 10:46
Show Gist options
  • Save roma-guru/42fb3835440ea73cacc40c6dea2d0819 to your computer and use it in GitHub Desktop.
Save roma-guru/42fb3835440ea73cacc40c6dea2d0819 to your computer and use it in GitHub Desktop.
Simplest FCGI app via Flup
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