Replies: 3 comments 2 replies
-
This likely is a issue with configuring iis, as no details on the deployment configuration was given, there's nothing we could answer in good conscience |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here is my web config:
<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI" path="*" verb="*"
modules="FastCgiModule"
scriptProcessor="...path\env\Scripts\python.exe|...path\env\Lib\site-packages\wfastcgi-3.0.0-py3.11.egg\wfastcgi.py"
resourceType="Unspecified" requireAccess="Script" />
</handlers>
</system.webServer>
<appSettings>
<add key="WSGI_HANDLER" value="TestAIChat.app" /> <!--
{name_of_file}.{name_of_flask_app}-->
<add key="PYTHONPATH" value="C:\inetpub\wwwroot\aichatpythonapi" />
<add key="WSGI_LOG" value="C:\inetpub\wwwroot\aichatpythonapi\app.log" />
</appSettings>
</configuration>
When adding website, I just right click on Sites on IIS and choose Add
Websites.
I installed CGI
I followed this video to add website: https://www.youtube.com/watch?v=Cer6HwrVgyg
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm new to python, can you recommend which one I should use besides
wfastcgi? I want to deploy my app with Windows server.
Thank you
…On Mon, Oct 9, 2023 at 2:50 PM Ronny Pfannschmidt ***@***.***> wrote:
wfastcgi is unmaintained since more than half a decade, please check the
current docs on iis and python
—
Reply to this email directly, view it on GitHub
<#5284 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUSHNTIEIGTC22NHZKBELHLX6OUEDAVCNFSM6AAAAAA5X2S4E6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TEMRXGU4TS>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
On Local, I can make @stream_with_context work and generate a stream string to my mobile flutter app.
However when publish to IIS windows server in production, it does not work anymore, it return the whole string.
Is there a way to make it work in production with IIS?
My test code:
Beta Was this translation helpful? Give feedback.
All reactions