kennethreitz / responder

A familiar HTTP Service Framework for Python.
http://responder.kennethreitz.org/
Other
3.59k stars 219 forks source link

Is it possible to deploy responder to IIS using wfastCGI? #360

Closed luongdieu86 closed 6 months ago

luongdieu86 commented 5 years ago

Hi all,

I want to deploy responder to ISS (Windows 10) using wfastCGI but it's failed. wfastcgi==3.0.0 responder==1.3.1

It's ok when I'm deploy Flask. But responder got following error :

Error occurred:

Traceback (most recent call last):
  File "D:\Dev_env\Python3.7.2_32bit\Lib\site-packages\wfastcgi.py", line 847, in main
    result = handler(record.params, response.start)
TypeError: __call__() takes 2 positional arguments but 3 were given

StdOut: 

StdErr:

Does this mean that wfastCgi does not support for Responder Router ? How can I deploy responder app to IIS ? Thank you

taoufik07 commented 5 years ago

Hey, responder is an ASGI framework and I think wfastcgi only bridge to WSGI

luongdieu86 commented 5 years ago

@taoufik07 is there any replacement for wfastcgi ? Dose uvicorn do the magic ?

taoufik07 commented 5 years ago

yep

luongdieu86 commented 5 years ago

Base my understanding, wfastcgi can act as a IIS - WSGI handler. But Daphne, Uvicorn and Hypercorn are ASGI - servers. Can we use ASGI server as IIS - WSGI handler ? I can not found any document/guide about deploy ASGI on IIS.

schap-dev commented 5 years ago

I want to similar thing too. I 'm exploring way to migration Flask to Responder. I deployed Flask by this simple way. How I can deploy Responder project without Docker and Heroku like this?