Environments in Forest Admin allow you to switch context:
different set of data
different layout configuration
To create a new environment, go to your Project settings (1):
Then from the Environments tab, click on "+ New test environment" (2).
Fill out the 2 fields and click "Saves changes" (3).
Lastly, you need to copy your environment secret to your
.env file as follows:
When you've connected at least once on your new environment, the yellow warning message will disappear.
Forest Admin is meant to help you manage your operations: this can only happen if you work with your Production data! To do so, you need to create your Production environment.
Click "Deploy to production" on the top banner or the Environments tab of your Project settings.
Deploying is a 3-step process:
Deploy your code to a remote server
FOREST_AUTH_SECRET as environment variables
DATABASE_URL : use this syntax
Enter that remote server's url in the Application URL field and click Verify
Developing in Forest Admin depends on your level of expectations:
The light & quick process
Make your UI changes directly in Production
Smart features which require code updates in your Admin backend can be developed in a Dev environment, then pushed to Production.
The safe & controlled process
Paul - a developer in your organization - is in charge of implementing a new Smart Action for the Operations team:
Since he wants to work from the existing layout of the Operations team, he retrieves it to his own environment "Dev - Paul":
From the Environments tab of the Project settings, he copies the layout configuration of the Production environment to his own environment: Dev - Paul
From the Teams tab, he copies the layout configuration of the Operations team to his own team (ie: Technical team)
He works locally on his "Dev - Paul" environment until the Smart Action is functional
At this point, he can deploy (his code) to production or to a testing environment (ie: staging) depending on his team's process
N.B: Test environments can be created programmatically using our "toolbelt"