Floodgate Docs


Environments allow you to organise your application into separate units, each unit having its own copy of a feature flag. An environemnt allows you to manage the state of your flags throughout the development lifecycle. Most of the time your environments in Floodgate will be the same as the environemnts in your infrastructure that your application is delivered to. For example, Development, QA and Production. You can even create individual environments for each developer in your team allowing them to work independently when necessary.

You can create as many environemnts as you need in your applications, though the number is limited to the subscription plan you are currently on.

Getting Started

When you signed up for Floodgate an application was created for you along with 2 environments, Production and Test. Each environment is created with a unique key called the SDK Key. This key is what allows the Floodgate SDKs to comminicate with the correct configuration data on the Floodgate servers.

As your application is deployed between environments, the SDK Key the application uses will change. This means the flag configuration your application is using can be different for each environemnt.

Your SDK Key should not be hard coded in your application and shoule be loaded in at runtime from environment variables for example.

You can switch between environments in your application by clicking on the environment name from the main navigation on the left.

Creating a New Environment

You can add a new environment to your application from either the Application Dashboard screen or from the Application Management page.

Create Environment

If you don't see the Create Environment button you may not have the necessary access rights to create an environemnt in the current application.

To add a new environment from the Application Management page.

  1. Navigate to Account Settings page from the main navigation menu.

  2. Select Applications from the Account Settings sub menu.

  3. Find the application you want to manage and click the Create Environment button for the application.

  4. Give a name for your environment. This can be anything you want but it's recommended to match the environments in your application delivery pipeline.

  5. Enter a description if needed.

  6. You can give your environments a colour to make identifying them easier. Select a colour of your choice.

  7. For security and audit purposes you can choose to require team members who make changes to flags in the environemnt need to enter a comment before saving their change.

  8. Once everything is completed click Save.

Create Environment