• Blog
  • Docs
  • Updates
Webda
Docs Menu
  • Quick start
    • Tutorials
  • Develop
    • Authentication
    • Binaries
    • Custom
    • Mailer
    • Models
    • Polymer
    • Queues
    • Stores
  • Deploy
    • AWS
    • Docker
    • Configuration Resolution
    • Local
    • WeDeploy

Configuration Resolution Guide

How Webda resolve service parameters.

Overview

To ease up the configuration of an application we came up with the follow configuration resolution schema.

You have the global configuration for the application, that is override by the deployment configuration, that is override by the local element configuration, and finally override by the deployment element configuration.

![image](/images/configuration_resolution.png)

This is the detail configuration for each section

// Global Configuration
{
  "param1": "test1",
  "param2": "test2",
  "param3": {
    "subparam1": "subtest1"
  }
}
// Deployment Global Configuration
{
  "param1": "deploytest1",
  "param2": "deplyparamtest2"
}
// Service Local Configuration
{
  "param2": "localtest2",
  "param3": {
    "subparam2": "sublocaltest2"
  }
}
// Service Deployment Configuration
{
  "param3": {
    "subparam2": "subdeploytest2"
  }
}
// Service Deployment Configuration
{
  "param1": "deploytest1",
  "param2": "localtest2",
  "param3": {
    "subparam1": "subtest1",
    "subparam2": "subdeploytest2"
  }
}

So this how webda will resolve Service final configuration

// Step 1 - Global configuration
{
  "param1": "test1",
  "param2": "test2",
  "param3": {
    "subparam1": "subtest1"
  }
}
// Step 2 - Deployment global configuration override
{
  "param1": "deploytest1",
  "param2": "deplyparamtest2",
  "param3": {
    "subparam1": "subtest1"
  }
}
// Step 3 - Service local configuration override
{
  "param1": "deploytest1",
  "param2": "localtest2",
  "param3": {
    "subparam1": "subtest1",
    "subparam2": "sublocaltest2"
  }
}
// Step 4 - Service deployment configuration override
{
  "param1": "deploytest1",
  "param2": "localtest2",
  "param3": {
    "subparam1": "subtest1",
    "subparam2": "subdeploytest2"
  }
}

Configuration UI

Here is some screenshots of the ui

Routes

![image](/images/ui_route_create.png) ![image](/images/ui_route_config.png)

Services

![image](/images/ui_service_create.png) ![image](/images/ui_service_config.png)

Deployments

![image](/images/ui_deployment_create.png) ![image](/images/ui_deployment_config.png) ![image](/images/ui_deployment_deploy.png)

Contribute on Github! Edit this section.