Skip to content

Commit 89bd171

Browse files
committed
docs: add "Confirming the Current Environment"
1 parent ae6f727 commit 89bd171

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

user_guide_src/source/general/environments.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ the value provided in ``$_SERVER['CI_ENVIRONMENT']``, otherwise defaulting to
4444
It has special conditions built into the framework at various places to assist with that.
4545
You can't use it for your development.
4646

47-
.. note:: You can check the current environment by ``spark env`` command::
48-
49-
> php spark env
50-
5147
This can be set in several ways depending on your server setup.
5248

5349
.env
@@ -134,6 +130,16 @@ to do is:
134130
1. copy **APPPATH/Config/Boot/production.php** to **staging.php**.
135131
2. customize settings in **staging.php** if you want.
136132

133+
**********************************
134+
Confirming the Current Environment
135+
**********************************
136+
137+
To confirm the current environment, simply echo the constant ``ENVIRONMENT``.
138+
139+
You can also check the current environment by ``spark env`` command::
140+
141+
> php spark env
142+
137143
*************************************
138144
Effects on Default Framework Behavior
139145
*************************************

0 commit comments

Comments
 (0)