@@ -17,19 +17,19 @@ Initial Configuration & Set Up
17
17
18
18
#. Open the **app/Config/App.php ** file with a text editor and
19
19
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/' ``.
21
21
(Always use a trailing slash on your base URL!)
22
22
#. If you intend to use a database, open the
23
23
**app/Config/Database.php ** file with a text editor and set your
24
24
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 ` .
33
33
34
34
.. note :: If you will be running your site using a web server (e.g., Apache or Nginx),
35
35
you will need to modify the permissions for the ``writable `` folder inside
0 commit comments