How to make live edit serve static files from e.g. "/static/index.css" as opposed to "projectName/static/index.css"

When I debug (live edit) in webstorm, css is not applied because only paths that include the project name is valid such as "/projectName/static/index.css".


When I don't debug and serve my files using my flask_app, only paths such as "/static/index.css" are valid (paths not including the projectName). 

What's happening here?

3 comments
Comment actions Permalink

Why don't you use your flask server for debugging/live edit?

0
Comment actions Permalink

Elena Pogorelova I can't "live edit" (meaning, I can't edit something in e.g. an html file and see instant changes) when I run my flask server; I have to refresh the browser after each change. That's why.

0
Comment actions Permalink

it's strange, as Live Edit is not web server-dependent, it should work equally regardless of the web server the app is hosted on

1

Please sign in to leave a comment.