Documentation Index
Fetch the complete documentation index at: https://docs.trophy.so/llms.txt
Use this file to discover all available pages before exploring further.
What are Environments?
Environments are core structures in Trophy that help you isolate data according to your team’s development workflows and copy changes between them.Types of Environments
Trophy supports three types of environments, each with a different use case in your development workflow:- Production - Each Trophy account has exactly one production environment. This is the default environment and is the one that should be used to store live data from your application.
- Staging - Each Trophy account can have multiple staging environments. Staging environments can be used to map to different stages of your development workflow, like QA, UAT, or Pre-Production.
- Development - Each Trophy account can have multiple development environments. Development environments can be used to test new features or changes to your Trophy account without affecting other environments.
Switching Between Environments
You can switch between environments by clicking the environment selector in the top left of the screen or the dedicated environments page.Creating Environments
New environments can be created in the Trophy dashboard through the environment selector in the top left of the screen or the dedicated environments page. Either way the process is the same.Choose an environment type
- Use Staging for environments you want to use to model your team’s official test environments like QA, UAT, or Pre-Production.
- Use Development for environments you want to use to test new features or changes to your Trophy account without affecting other environments.
(Optional) Choose an environment to clone from
Choosing to clone an existing environment will create the new environment as an exact copy of the source environment, including all current data and settings.
Change Tracking and Propagation
Here we outline Trophy’s model for change tracking and propagation across environments and how you can use this to model your team’s development workflow.When using multi-tenancy, changes are not automatically propagated between environments. Instead, environments are treated as totally isolated from each other in order to allow for maximum flexibility in how you can use Trophy.
Environment Priority
Environment priority is fundamental to how change tracking and propagation works across environments in Trophy. Each type of environment in Trophy follows a natural priority order based on its use case in your development workflow. As Production environments represent live data, these have the highest priority. Similarly, Staging environments are used to test and review changes before releasing to production, so they have a higher priority than Development environments.- Production (highest priority)
- Staging
- Development (lowest priority)
You cannot change the order of Development environments. All Development environments in Trophy have the same priority.
Change Tracking
Trophy automatically keeps track of changes made in each of your environments and detects differences between them. This allows you to work on changes in isolation and only copy them to the next environment in your workflow when you’re ready with the confidence that Trophy will keep track of your work. Changes between environments are detected and tracked from the highest environment priority to the lowest.Viewing Changes
When changes are made in non-production environments, they are not automatically propagated to Production. Instead, they are isolated within the environment they were made in until you copy them to another environment. You can view the changes made in each environment relative to another target environment by clicking the environment selector in the top left of the screen and selecting ‘View Changes’.Copying Changes
On the view changes screen you can copy changes to your chosen target environment by clicking the ‘Copy All Changes’ button. This will apply the changes listed to your target environment. Once the process is complete, your target environment will be up to date with your current environment and you can continue to make new changes.Reverting Changes
On the view changes screen you can revert specific changes by clicking the ‘Revert’ icon next to each change you want to revert.Change Propagation
When a change is made in an environment, it is propagated to all environments with a lower environment priority automatically. This keeps all environments in sync with their natural direction of propagation and saves time in copying changes manually. This means when you make changes in a Production environment, they will be automatically propagated to all Staging environments and all Development environments. Similarly, when changes are made in a Staging environment, they will be automatically propagated to all other Staging environments with a lower priority and all Development environments. Finally, when changes are made in a Development environment, they will not be propagated to any other environments.Frequently Asked Questions
How many environments can I create?
How many environments can I create?
Here’s how many environments you can have based on type:
- Production - 1
- Staging - 4
- Development - 10
If you feel you need more environments, please get in touch and we’ll be happy to discuss your needs.
How do I copy changes between environments?
How do I copy changes between environments?
You can copy changes between environments by clicking the ‘Copy All Changes’ button on the view changes screen.
Can I delete an environment?
Can I delete an environment?
Yes, you can delete an environment by clicking the ‘Delete’ button on the environments page.
Can I rename an environment?
Can I rename an environment?
Yes, you can rename an environment by clicking the ‘Rename’ button on the environments page.
Can I clone an environment?
Can I clone an environment?
Yes, you can clone an environment by clicking the ‘Clone’ button on the environments page.
Can I change the natural order of environments?
Can I change the natural order of environments?
Yes, you can change the order of Staging environments by clicking the action menu on the environment you want to move and selecting ‘Move up’ or ‘Move down’.
You cannot change the order of Development environments. All Development environments in Trophy have the same priority.