> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/documentation/documentation-en/eksploatacja-aplikacji/designer/srodowiska.md).

# Environment module

{% hint style="info" %}
Availability of functionality depends on the license and may not be available in all deployments.
{% endhint %}

The module is used to manage application templates. It enables:

* previewing the version of the selected application in the available environments,
* migrating the application template (together with its dependencies) between environments,
* withdrawing the last application migration on a specific environment (rollback),
* running the selected application in the selected environment in the simulator (see Application Simulator),
* downloading the business package (application template together with dependencies required to run it in the environment).

## Displaying application information in environments

After entering the module, the button is displayed **APPLICATION**.

<figure><img src="/files/e943cabd1e47505b589b0d52fc01d6630456ff20" alt=""><figcaption><p><em><strong>Figure 1.</strong> "Environments" tab</em></p></figcaption></figure>

After selecting an application from the list, the published and highest version of the application will be displayed on each of the available environments:

<figure><img src="/files/a2c54e25aa7ae52c7b51d179fdc05496fed37522" alt=""><figcaption><p><em><strong>Figure 2.</strong> Application status on individual environments</em></p></figcaption></figure>

## Running the application

Clicking the button next to the published version redirects to the application simulator module, automatically selecting the environment from which the redirection occurred.

## Template migration

To migrate the application together with dependencies to a higher environment, click the arrow between the tiles:

<figure><img src="/files/cfbc4011ee4f9ec2d896ccc59ec43c421369516c" alt=""><figcaption><p><em><strong>Figure 3.</strong> Arrow migrating the application to a higher environment</em></p></figcaption></figure>

This will cause the migration and publishing of the template in the highest version to the indicated environment. Additionally, files necessary for proper operation of the application will be imported into the appropriate directories on the environment.

Template migration is performed only on the first environment, due to the shared database for all LAN instances. Dependencies for the application, however, are delivered to all instances.

### Validation during template migration

Before migrating the template together with dependencies, environment consistency validation is performed. The validator checks whether dependencies imposed on the target environment will not introduce inconsistencies. If the validator encounters any problems, it will display a list and the content of warnings to the user. At this point, the user can decide whether they still want to force the migration to the target environment.

<figure><img src="/files/a75fee1a3dbcdb6add1db3e19bea25e20c0f51d7" alt=""><figcaption><p><em><strong>Figure 4.</strong> Migration error message</em></p></figcaption></figure>

## Environment action menu

To open the environment action menu, press the button **Open action menu** located in the upper right corner of the environment tile.

<figure><img src="/files/5e90e823d43b73699ab25697df326cd448ce4a42" alt=""><figcaption><p><em><strong>Figure 5.</strong> Environment action menu</em></p></figcaption></figure>

### Template export

Clicking in the action menu option **Export package** will build a zip file containing the application template in the latest version on the given environment along with the dependencies needed to run it.

<figure><img src="/files/fb73594cec7827776e0c51aec7a880683233cf95" alt=""><figcaption><p><em><strong>Figure 6.</strong> Menu containing the package export command</em></p></figcaption></figure>

The file will be saved in the Nexus repository. In response, a popup with a link to the package in Nexus will appear in the browser.

<figure><img src="/files/c068e434a5659183830c66194810eab3a7d9a9d6" alt=""><figcaption><p><em><strong>Figure 7.</strong> Window with link to the package</em></p></figcaption></figure>

* Exporting the template from the repository is performed from the first environment, due to the shared database for all LAN instances.
* Visibility of the export option is controlled by the flag from the environment configuration (`bundleExporter`).

### Environment rollback

The option **Rollback** serves to restore on a given environment the last backup copy of the application dependencies directories. Backups are created at the moment of migrating any application with dependencies to the environment. Each environment has its own backup for each application previously migrated.

* Template rollback is performed only on the first environment, due to the shared database for all LAN instances.
* Visibility of this option is controlled by the flag from the environment configuration (`migrationTarget`).

If no migration has been finalized previously, the option will be grayed out, because there is no available package that could be restored.

## Environment configuration

The list of available environment "tiles" should be configured in a file whose path should be provided in the package installation parameters (`EXIMEE_CONSOLE_ENVIRONMENTS_CONFIGURATION_PATH`). The order of the listed environments also determines the direction of migration.

```json
[
  {
    "name": "Environment1",
    "lanHosts": [
      "lan.adres.test"
    ],
    "migrationTarget": false,
    "bundleExporter": false
  },
  {
    "name": "Environment2",
    "lanHosts": [
      "lan.test.eximee",
      "lan2.test.eximee"
    ],
    "migrationTarget": true,
    "bundleExporter": true
  }
]
```

### Meaning of individual attributes:

* **`name`** – environment name displayed on the tile.
* **`lanHosts`** – array of LAN instances in a given environment (it is important that these are only hosts – without e.g. protocol `http://` or port).
* **`migrationTarget`** – flag indicating whether applications can be migrated to the given environment.
* **`bundleExporter`** – flag indicating whether the application package with dependencies can be exported from the given environment.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.eximee.com/documentation/documentation-en/eksploatacja-aplikacji/designer/srodowiska.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
