Manage environment variables in the XM Cloud Deploy app
You can manage settings that change by environment by declaring environment variables.
Modifying environment variables requires a rebuild/redeploy of your environment for the changes to take effect.
Create an environment variable
To create an environment variable:
-
On the navigation pane of the XM Cloud Deploy app, click Projects.
-
On the Projects page, click the project that contains the environment where you want to create an environment variable.
-
On the project page, click the environment where you want to create a variable.
-
On the environment page, click Variables, then click Create variable.
-
In the Create variable dialog, in the Name field, enter a name for your environment variable.
-
In the Value field, enter a value for your variable.
-
If you want to encrypt your variable and hide its value, turn on the Secret toggle.
-
In the Target field, choose the target for your environment variable.
NoteIf the target is a rendering host, the Rendering host name value must be one of the rendering hosts defined in the
xmcloud.build.json
file. For example: xmcloudpreview. -
Click Save.
Edit an environment variable
To edit an environment variable:
-
On the navigation pane of the XM Cloud Deploy app, click Projects.
-
On the Projects page, click the project that contains the environment where you want to edit an environment variable.
-
On the project page, click the environment where you want to edit a variable.
-
On the environment page, click Variables.
-
On the Variables tab, locate the variable you want to edit, then click Actions > Edit variable.
-
In the Edit variable dialog, edit your variable, then click Save.
Delete an environment variable
To delete an environment variable:
-
On the navigation pane of the XM Cloud Deploy app, click Projects.
-
On the Projects page, click the project that contains the environment where you want to delete an environment variable.
-
On the project page, click the environment where you want to delete a variable.
-
On the environment page, click Variables.
-
On the Variables tab, locate the variable you want to delete, then click Actions > Delete variable.
-
In the Delete variable dialog, click Delete.