Skip to content

Commit 5dead75

Browse files
committed
docs: improve Whoops page explanation
1 parent aba1ac1 commit 5dead75

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

user_guide_src/source/installation/troubleshooting.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ That is a sign that you are in production mode and have hit an
6868
unrecoverable error, which we don't want to show to the viewer of
6969
the webapp, for better security.
7070

71-
You can see the error in the debug toolbar display by setting your environment to
72-
"development" (in **.env**), and reloading the page.
71+
You can see the error in the log file. See `CodeIgniter Error Logs`_ below.
7372

74-
Don't forget to reset the environment to "production" once you fix the problem!
73+
If it is not on the production server, you should set your environment to
74+
"development" (in **.env**). See :ref:`setting-development-mode` for the detail.
75+
After that, reload the page. You will see the error and the back trace.
7576

7677
CodeIgniter Error Logs
7778
----------------------

user_guide_src/source/tutorial/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ Enjoy your exploration of the CodeIgniter framework.
5353
Getting Up and Running
5454
**********************
5555

56+
Installing CodeIgnier
57+
=====================
58+
5659
You can download a release manually from the site, but for this tutorial we will
5760
use the recommended way and install the AppStarter package through Composer.
5861
From your command line type the following::
@@ -62,6 +65,11 @@ From your command line type the following::
6265
This creates a new folder, **ci-news**, which contains your application code, with
6366
CodeIgniter installed in the vendor folder.
6467

68+
.. _setting-development-mode:
69+
70+
Setting Development Mode
71+
========================
72+
6573
By default, CodeIgniter starts up in production mode. This is a safety feature
6674
to keep your site a bit more secure in case settings are messed up once it is live.
6775
So first let's fix that. Copy or rename the ``env`` file to ``.env``. Open it up.
@@ -74,6 +82,9 @@ out. So uncomment the line with ``CI_ENVIRONMENT`` on it, and change ``productio
7482

7583
CI_ENVIRONMENT = development
7684

85+
Running Development Server
86+
==========================
87+
7788
With that out of the way it's time to view your application in a browser. You can
7889
serve it through any server of your choice, Apache, Nginx, etc, but CodeIgniter
7990
comes with a simple command that takes advantage of PHP's built-in server to get

0 commit comments

Comments
 (0)