P粉8218083092023-09-01 14:46:53
If you have access to the source code of the API, you may be able to build and run it locally, taking into account that it may require some environment variables that you do not have stored on your local machine and require some configuration to be able to run it locally run outside of a production environment.
If you are able to do this, then you need to update the domain name of the API in the front-end API constants (e.g. update http://{APIDOMAIN}/your/route to http://localhost:5000/your/ route) for testing locally.
P粉4941519412023-09-01 14:01:57
Okay, NetMage's suggestion of creating a virtual IIS directory worked!
You can create a virtual directory for your running IIS application that points to a local folder.
<sites>
section in the configuration file<sites> <site name="App.WebApi" id="1"> <application path="/" applicationPool="App.WebApi AppPool"> <virtualDirectory path="/" physicalPath="C:\Repos\Code\App.WebApi" /> <virtualDirectory path="/Media" physicalPath="C:\Media" /> <--这是我新增的 </application> <bindings> <binding protocol="http" bindingInformation="*:8080:localhost" /> </bindings> </site> <sites>