1

Resolved

Need way to specify static dir for Bottle and Flask

description

When running under IIS, we want to have IIS server the static files, instead of going to the Python code.

Right now this must be done by taking the generated web.config file and adding a condition:
          <conditions>
            <add input="{REQUEST_URI}" pattern="^/static/.*" ignoreCase="true" negate="true" />
          </conditions>
And making sure to remove the comments at the top of the web.config so it doesn't get overwritten...
And including web.config in the project (otherwise it doesn't get published)...

We should save the user this trouble by having a setting they can easily edit (project setting?). When we generate web.config, we'd inject the condition for them like we do in Django.

comments