I have a project which uses a node.js/express server to serve an AngularJS SPA.
The project contains a number of different applications which share some common resources. The express server is configured to serve assets from different locations:
server.use('/assets', express.static(path.join(rootDir, 'myApp/assets')));
server.use('/images', express.static(path.join(rootDir, 'components/common/images')));
server.use(express.static(path.join(rootDir, 'components')));
I am trying to change the app to make use of WebStorm's liveEdit feature but having difficulty configuring the debugger.
Here's what I have done so far:
- Install the chrome extension, make it active and configure the port to 9000.
- Create a new Javascript/Debug configuration with url: http://localhost:9000
- Configure remote urls for my index.html (http://localhost:9000/index.html: myApp/index.html), assets, images, components etc. as above.
When I click the debug button for my new config, I just get a message 'This webpage is not available'.
I have been through the JetBrains docs but don't see a solution.