Deploy Application Component

🕓 10 minutes

What you’ll learn#

How to deploy an application into the CodeNOW environment.

By deploying the application, it becomes publicly accessible and available for use.

Prerequisites#

Steps#

Create an application package#

  • Define the application package version.
    • Select which components (and which version of the components) to include in the application package.
      • An application package consists of an individual component of released builds with individual build versions.
      • An application package is merely a descriptor, so far no real deployment exists.
      • An application as an orchestration of components is delivered to the selected environment as a whole package.
dep4.1

dep4.2

Create an application configuration#

  • Select an environment and package version.
  • Define the configuration for every application component in the package.
    • By default, CodeNow uses a configuration from the application.yaml file.
dep5.1

dep5.2

Define a deployment configuration#

  • Select the target environment and application package version.
dep5

  • The default configuration uses the application.yml from each component.
    • You can display the current configuration by clicking on the "See applied configuration" button.
    • If you would like to change the existing configuration file, simply click on the "Edit configuration" button.
      • You will be redirected to a configuration page, where you are able to edit and then save the configuration file.
    • Explicit configuration for each environment should not be required if you use dns endpoint names, i.e., http://component-name
      • If required, configuration for local development is possible using profiles and the application-{profile}.yml configuration file.
dep5

dep5

dep5

dep5

  • You can see the assigned domain configuration and/or edit the configuration by clicking on the related buttons in the "Assigned Domain" section.

    • Explicit configuration for each environment should not be required if you use dns endpoint names, i.e., http://component-name
    • If required, configuration for local development is possible using profiles and the application-{profile}.yml configuration file.
  • If one or more of your components has any connected services, select the related service from the menu, so that CodeNow can automatically add the right values, and connect your application to the chosen service.

connect_services

  • You can also change the runtime configuration of your application in the "Runtime Configuration" section.
runtime_configuration

Deploy the application#

  • Click on one of the buttons for the deployment. The deployment progress can be followed in the application graph below.
  • The deployment was successful, if its status is "HEALTHY".deployment_status

What’s next?#

You might be interested in our other tutorials: