Support & Documentation
Follow

How Do I Overwrite Environment Name and App name for my Apps?

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.

For .NET Apps

Put the following section in your web.config or app.config file:

<appSettings>
     <add key="Stackify.ApiKey" value="YOUR API KEY HERE" />
     <add key="Stackify.AppName" value="YOUR APP NAME" />
     <add key="Stackify.Environment" value="YOUR ENVIRONMENT NAME" />
</appSettings>

Note: The API key can be found in the Settings>Account or Settings>Billing pages of your account.

 For Java Apps

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

stackify.application=YOUR_APPLICATION_NAME
stackify.environment=YOUR_ENVIRONMENT

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk