Skip to content

Configuring Environments

Environments in Martini are defined by their properties, dependencies, and configuration files. Proper configuration of these environments ensures that your applications run smoothly across various stages of development, such as development, testing, staging, and production. This page outlines how to manage and configure environments effectively.

Properties

For detailed information on managing properties specific to each environment, please refer to the dedicated section on Properties.

In that section, you will learn about:

The types of properties:

  1. Package properties
  2. Application properties
  3. System properites
  4. Environmental properties

The heirarchy of properties:

  1. package- properties
  2. Package properties
  3. Application override properties
  4. Application properties
  5. System properties
  6. Environment properties

Dependencies

Dependencies, such as databases and message queues, often vary across different environments. Proper management of these dependencies is crucial for ensuring that your applications function correctly in each environment.

For comprehensive guidance on managing dependencies, refer to the Dependencies section. This will cover:

  • Message Brokers: Configuration details for message brokers located in <martini-home>/conf/broker.
  • Database Connections: Management of database connection settings found in the <martini-home>/conf/db-pool folder.

By organizing and configuring your properties and dependencies according to the specific requirements of each environment, you can facilitate a smoother deployment process and ensure that your applications are properly integrated with the necessary resources.

Configuration Files

The overrides folder contains environment specific application properties and configuration files. The overrides folder is located at:

<martini-home>/conf/overrides

To ensure that your environment remains stable during system upgrades overrides folder will not be overwritten when updating Martini Server Runtime using the installer.

The following configuration files can be customized within this folder:

  • log4j2.properties
  • override.properties
  • remote-servers.properties
  • trackers.xml