• Print
  • Share
  • Dark

How Do I Overwrite App and Environment Names?

  • Updated on 16 Jun 2018
  • 1 minute to read
  • Contributors

There may be scenarios where you want to change the initial app name discovered by the agent. (By default the app is named by the root directory of the app). You may also wish to have a different environment name for different apps being hosted on the same server.

The app name and environment name defined by the agent can easily be altered by setting parameters in the application's configuration file.

During Installation

The environment can be specified for the entire server when you install the Windows or Linux agent.

For .NET Apps

Put the following section in your web.config or app.config file. This has to be placed directly in the web or app config and cannot be in a separate config file:

    <add key="Stackify.AppName" value="YOUR APP NAME" />
    <add key="Stackify.Environment" value="YOUR ENVIRONMENT NAME" />

For Java Apps

Put the following section in the stackify-api.properties file and place it in the webapp classpath: