\r
$ grunt live\r
\r
-It will start server at http://localhost:9000/. It expects your controller to be running at localhost:8080.\r
+It will start server at http://localhost:9000/. It expects your controller to be running at localhost:8181.\r
\r
You can change the base url of controller in file dlux-web/config/development.json\r
\r
This assumes that dlux is deployed on same node where md-sal is present. If md-sal is present at different OSGi container,\r
then you should update the base url in file dlux-web/config/production.json\r
\r
-6. Copy this jar bundle to plugins directory inside your controller distribution. Then, you can access Dlux UI at http://<<Controller IP>>:8080/dlux/index.html.\r
+6. Copy this jar bundle to plugins directory inside your controller distribution. Then, you can access Dlux UI at http://<<Controller IP>>:8181/dlux/index.html.\r
\r
\r
## Overall Directory Structure\r
* completely built.\r
*/\r
build_dir: 'build',\r
- compile_dir: 'target/generated-resources',\r
+ compile_dir: 'target/generated-resources/pages',\r
\r
/**\r
* This is a collection of file patterns that refer to our app code (the\r
{
- "baseURL": "http://localhost:8080"
+ "baseURL": "http://localhost:8181"
}
\ No newline at end of file
appDir: "build/",
mainConfigFile: "src/main.js",
baseUrl: "src",
- dir: "target/generated-resources",
+ dir: "target/generated-resources/pages",
removeCombined: true,
findNestedDependencies: true,
modules: [
public void removedService(ServiceReference reference, Object service) {
try {
- ((HttpService) service).unregister("/");
+ ((HttpService) service).unregister("/dlux");
} catch (IllegalArgumentException exception) {
// Ignore; servlet registration probably failed earlier on...
}
// HTTP service is available, register our servlet...
HttpService httpService = (HttpService) this.context.getService(reference);
try {
- httpService.registerResources("/", "/pages", null);
+ httpService.registerResources("/dlux", "/pages", null);
} catch (Exception exception) {
exception.printStackTrace();
}