<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dafne.bi-services.sk/index.php?action=history&amp;feed=atom&amp;title=Environments</id>
	<title>Environments - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dafne.bi-services.sk/index.php?action=history&amp;feed=atom&amp;title=Environments"/>
	<link rel="alternate" type="text/html" href="https://wiki.dafne.bi-services.sk/index.php?title=Environments&amp;action=history"/>
	<updated>2026-10-23T19:25:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>https://wiki.dafne.bi-services.sk/index.php?title=Environments&amp;diff=63&amp;oldid=prev</id>
		<title>Dafne: Documentation import</title>
		<link rel="alternate" type="text/html" href="https://wiki.dafne.bi-services.sk/index.php?title=Environments&amp;diff=63&amp;oldid=prev"/>
		<updated>2026-08-06T13:36:45Z</updated>

		<summary type="html">&lt;p&gt;Documentation import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Dafne is normally deployed several times over — production, testing, development and so on. Each installation knows which environment it is, and can link to the others.&lt;br /&gt;
&lt;br /&gt;
== Environment types ==&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Environment&amp;#039;&amp;#039;&amp;#039; setting identifies the current installation. It is a drop-down with a fixed set of values:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Value !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Production&amp;#039;&amp;#039;&amp;#039; || Live processing&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Testing&amp;#039;&amp;#039;&amp;#039; || Test environment&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Development&amp;#039;&amp;#039;&amp;#039; || Development environment&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Acceptance testing&amp;#039;&amp;#039;&amp;#039; || UAT&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Integration testing&amp;#039;&amp;#039;&amp;#039; || SIT&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Other1&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Other2&amp;#039;&amp;#039;&amp;#039; || Spare slots for site-specific environments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The environment is set in &amp;#039;&amp;#039;&amp;#039;Author&amp;#039;&amp;#039;&amp;#039; → &amp;#039;&amp;#039;&amp;#039;Settings&amp;#039;&amp;#039;&amp;#039;; see [[System settings]].&lt;br /&gt;
&lt;br /&gt;
== Colour coding ==&lt;br /&gt;
The environment determines the colour of the bar in the main menu. This is the main defence against acting on the wrong installation, and it is worth making sure production is visually unmistakable before anything else is configured.&lt;br /&gt;
&lt;br /&gt;
== The environment switcher ==&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Environment&amp;#039;&amp;#039;&amp;#039; button in the main menu shows the current environment and offers links to the others. Each link opens that installation in a new tab.&lt;br /&gt;
&lt;br /&gt;
An environment appears in the switcher only when its &amp;#039;&amp;#039;&amp;#039;URL base&amp;#039;&amp;#039;&amp;#039; is filled in and begins with &amp;lt;code&amp;gt;http&amp;lt;/code&amp;gt;. The current environment is excluded from its own list. If the button is disabled, no other environment has a usable URL base configured.&lt;br /&gt;
&lt;br /&gt;
The URL bases are separate settings, one per environment type:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Setting !! Environment&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;URLBaseProd&amp;#039;&amp;#039;&amp;#039; || Production&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;URLBaseTest&amp;#039;&amp;#039;&amp;#039; || Testing&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;URLBaseDev&amp;#039;&amp;#039;&amp;#039; || Development&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;URLBaseUat&amp;#039;&amp;#039;&amp;#039; || Acceptance testing&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;URLBaseSit&amp;#039;&amp;#039;&amp;#039; || Integration testing&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;URLBaseOther1&amp;#039;&amp;#039;&amp;#039; || Other1&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;URLBaseOther2&amp;#039;&amp;#039;&amp;#039; || Other2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each installation carries its own copy of these settings, so the switcher has to be configured in every environment — not only in one.&lt;br /&gt;
&lt;br /&gt;
== The environment placeholder ==&lt;br /&gt;
The current environment is available to tasks and notifications as &amp;lt;code&amp;gt;%env%&amp;lt;/code&amp;gt;, resolving to a single-character code:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code !! Environment&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; || Production&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;T&amp;lt;/code&amp;gt; || Testing&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;D&amp;lt;/code&amp;gt; || Development&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;U&amp;lt;/code&amp;gt; || Acceptance testing&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;S&amp;lt;/code&amp;gt; || Integration testing&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;O&amp;lt;/code&amp;gt; || Other1&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Q&amp;lt;/code&amp;gt; || Other2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is what makes a single task definition safe to deploy everywhere: the statement can branch on the environment, and a notification can say which installation it came from. Including &amp;lt;code&amp;gt;%env%&amp;lt;/code&amp;gt; in notification text is strongly advisable where the same definitions run in several places — otherwise an alert from test is indistinguishable from one from production.&lt;br /&gt;
&lt;br /&gt;
See [[Placeholders]].&lt;br /&gt;
&lt;br /&gt;
== Deploying between environments ==&lt;br /&gt;
Definitions are moved between installations by export. Two points matter:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Credentials are not exported.&amp;#039;&amp;#039;&amp;#039; Passwords and authentication keys are omitted, so connections created in the target must have their credentials set by hand.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Connection definitions can take their values from the environment&amp;#039;&amp;#039;&amp;#039; rather than storing them. Several connection fields have a &amp;#039;&amp;#039;variable&amp;#039;&amp;#039; counterpart for this. Where the same definition is deployed to several installations, this is the cleaner approach. See [[Connection]].&lt;br /&gt;
&lt;br /&gt;
== Practical notes ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Set the Environment value first&amp;#039;&amp;#039;&amp;#039; on a new installation. Until it is right, the colour coding is wrong, and the colour coding is what stops mistakes.&lt;br /&gt;
* Keep the URL bases current. A switcher pointing at a decommissioned host is worse than no switcher.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[System settings]]&lt;br /&gt;
* [[Configuration]]&lt;br /&gt;
* [[Placeholders]]&lt;/div&gt;</summary>
		<author><name>Dafne</name></author>
		
	</entry>
</feed>