Webstorm How do I set the context root for my application?

Viewed 3055

I'm having a heck of a time figuring this out (and I assume it is a basic problem and I'm just searching for the wrong terms). I have a plain html site that I'm trying to debug locally and when I open it in a browser or debug it I get this url:

http://localhost:63342/DeleteMe/root/index.html

If I set my resource root to the root folder I end up with:

http://localhost:63342/DeleteMe/index.html

The problem is I use "absolutely" pathed resources such as /js/utility.js because the context shifts based on what AJAX content is pulled in (Hijax-ish application).

What I'd like to see is->

http://localhost:63342/index.html

http://localhost:63342/js/utility.js

for a project like:

[DeleteMe] <--project root
  - root
    - js
      utility.js
    - index.html

I'm interested in a solution that deals directly with this problem inside the IDE. I already have a host of tools for web development and I'm evaluating JetBrains at the moment and these little details are what make the difference for me. I can easily set up IIS or Apache to preview the site, I'm looking for a complete solution in a single IDE.

(For reference the project was developed using Eclipse)

1 Answers
Related