Skip to content

Commit 33f507d

Browse files
committed
docs: improve Initial Configuration
1 parent 5dead75 commit 33f507d

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

user_guide_src/source/general/environments.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ tools loaded that you don't in production environments, etc.
1313
:local:
1414
:depth: 2
1515

16+
.. _environment-constant:
17+
1618
The ENVIRONMENT Constant
1719
========================
1820

user_guide_src/source/installation/running.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ Initial Configuration & Set Up
1717

1818
#. Open the **app/Config/App.php** file with a text editor and
1919
set your base URL. If you need more flexibility, the baseURL may
20-
be set within the **.env** file as ``app.baseURL="http://example.com/"``.
20+
be set within the **.env** file as ``app.baseURL = 'http://example.com/'``.
2121
(Always use a trailing slash on your base URL!)
2222
#. If you intend to use a database, open the
2323
**app/Config/Database.php** file with a text editor and set your
2424
database settings. Alternately, these could be set in your **.env** file.
25-
26-
One additional measure to take in production environments is to disable
27-
PHP error reporting and any other development-only functionality. In
28-
CodeIgniter, this can be done by setting the ``ENVIRONMENT`` constant, which
29-
is more fully described on the :doc:`environments page </general/environments>`.
30-
By default, the application will run using the "production" environment. To
31-
take advantage of the debugging tools provided, you should set the environment
32-
to "development".
25+
#. If it is not on the production server, set ``CI_ENVIRONMENT`` to ``development``
26+
in **.env** file to take advantage of the debugging tools provided. See
27+
:ref:`setting-development-mode` for the detail.
28+
29+
.. important:: In production environments, you should disable error display and
30+
any other development-only functionality. In CodeIgniter, this can be done
31+
by setting the environment to "production". By default, the application will
32+
run using the "production" environment. See also :ref:`environment-constant`.
3333

3434
.. note:: If you will be running your site using a web server (e.g., Apache or Nginx),
3535
you will need to modify the permissions for the ``writable`` folder inside

0 commit comments

Comments
 (0)