0

I have developed a Python-based Web API using frameworks such as Flask or FastAPI and need to deploy it on an IIS (Internet Information Services) server. The goal is to make the API accessible within my organization's network.

Here is what I have completed so far:

  1. Installed Python and added it to the system's PATH.
  2. Created a virtual environment and installed all necessary dependencies (e.g., Flask).
  3. Tested the API locally using python app.py or a similar command, and it is functioning as expected.

What are the steps to host this Python Web API on an IIS server running on Windows OS?

6
  • 1
    There is a set of details for this at Deploy a Python Flask Application in IIS Server.
    – OldBoy
    Commented Dec 7, 2024 at 12:37
  • 1. If you want virtual environments, then you have to use Linux. 2. Without virtual environments, there are tons of tutorials to set up Flask web apps on IIS like docs.lextudio.com/blog/…
    – Lex Li
    Commented Dec 8, 2024 at 1:05
  • @OldBoy I followed the steps mentioned in the link, but I'm encountering the error: "HTTP Error 503. The service is unavailable." What could be causing this issue? Commented Dec 9, 2024 at 5:10
  • It is impossible for anyone to guess what may cause the error. You will need to gather information from the server logs, or do some debugging of your code.
    – OldBoy
    Commented Dec 9, 2024 at 10:31
  • @OldBoy I checked the log files for errors but didn’t find any issues. Did you try the steps mentioned in the link, and are they working correctly for you? Apart from the steps in the link, did you make any additional configurations? Commented Dec 9, 2024 at 12:44

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.