Automatic Code Refresh
<client> <view-group title="Main"> <html-view title="Welcome" path="welcome.html"/> </view-group> <client-resources-local-path>C:\dev\example-app\client-resources</client-resources-local-path> </client>
<installdir>\insight\server\wildfly-9.0.1.Final\bin\standalone.conf.bat
set INSIGHT_SERVER_MODE=development
You will need to restart the Xpress Insight server for this change to take effect.
?debug=true
This needs to be inserted into the browser URL after insight/ and before the string of characters that begins with the hash symbol #.
http://localhost:8860/insight/?debug=true#...
This enables you to see local changes with only a browser refresh.
If theXpress Insight server is not set to run in development mode, then the <client-resources-local-path/> element will be ignored and client resources will be served from the uploaded app bundle as normal. However, if you are running the Xpress Insight server in development mode and the local path does not contain the requested client resource, you will get 404: page not found errors.
When distributing a copy of your app, remove the <client-resources-local-path/> element from the companion file as it may cause unexpected behavior in a demo or production environments.