---json
{
"aliases": [
{ "path": ":docs:project:environment" }
],
"page_id": "1t3exq6kn08inms2cg5yk"
}
---
====== Execution environment ======
===== About =====
''exec-env'' is a [[docs:conf:attribute|attribute]] that sets the execution environment (ie in production or not).
===== Built-in =====
Tabulify knows the following environments:
^ Name ^ default ^ Description ^
| ''prod'' | | The production environment |
| ''dev'' | x | The dev environment |
[[:docs:op:op|operations]] may react differently depending on it.
To avoid sending emails in a dev environment, the [[docs:op:sendmail|send operation]] will send them all
to the ''to'' address of the smtp connection.
===== How to set the environment ? =====
You can set the environment :
* at the command line with the ''--env'' option of tabul.
tabul --exec-env prod
* via a [[docs:conf:os|tabul os environment variable]]
export TABUL_EXEC_ENV=prod
===== How to see the environment =====
With the ''env'' variable.
Example:
tabul env list EXEC_ENV
attribute value origin description
--------- ----- -------------- -------------------------
EXEC_ENV dev Os environment The execution environment