Skip to content

Commit 535254c

Browse files
committed
docs: add note for --no-dev when deploying
Remove "composer create-project codeigniter4/appstarter --no-dev", because it is not so important.
1 parent 6faf52c commit 535254c

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

user_guide_src/source/installation/installing_composer.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ If you omit the "project-root" argument, the command will create an
4848
The symbols that can be used are ``/``, ``_``, ``.``, ``:``, ``\`` and space.
4949
So if you install CodeIgniter under the folder that contains the special characters like ``(``, ``)``, etc., CodeIgniter won't work.
5050

51-
If you don't need or want phpunit installed, and all of its composer
52-
dependencies, then add the ``--no-dev`` option to the end of the above
53-
command line. That will result in only the framework, and the three
54-
trusted dependencies that we bundle, being composer-installed.
51+
.. important:: When you deploy to your production server, don't forget to run the
52+
following command::
5553

56-
A sample such installation command, using the default project-root "appstarter"::
54+
> composer install --no-dev
5755

58-
> composer create-project codeigniter4/appstarter --no-dev
56+
The above command will removes the Composer packages only for development
57+
that are not needed in the production environment. This will greatly reduce
58+
the folder size.
5959

6060
Initial Configuration
6161
---------------------
@@ -134,6 +134,15 @@ In your project root::
134134

135135
> composer require codeigniter4/framework
136136

137+
.. important:: When you deploy to your production server, don't forget to run the
138+
following command::
139+
140+
> composer install --no-dev
141+
142+
The above command will removes the Composer packages only for development
143+
that are not needed in the production environment. This will greatly reduce
144+
the folder size.
145+
137146
Setting Up
138147
----------
139148

0 commit comments

Comments
 (0)