You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 vendor folder size.
56
59
57
60
Initial Configuration
58
61
---------------------
@@ -131,11 +134,20 @@ In your project root::
131
134
132
135
> composer require codeigniter4/framework
133
136
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 vendor folder size.
145
+
134
146
Setting Up
135
147
----------
136
148
137
-
1. Copy the ``app``, ``public``, ``tests`` and ``writable`` folders from ``vendor/codeigniter4/framework`` to your project root
138
-
2. Copy the ``env``, ``phpunit.xml.dist`` and ``spark`` files, from ``vendor/codeigniter4/framework`` to your project root
149
+
1. Copy the **app**, **public**, **tests** and **writable** folders from **vendor/codeigniter4/framework** to your project root
150
+
2. Copy the **env**, **phpunit.xml.dist** and **spark** files, from **vendor/codeigniter4/framework** to your project root
139
151
3. You will have to adjust the ``$systemDirectory`` property in **app/Config/Paths.php** to refer to the vendor one, e.g., ``ROOTPATH . '/vendor/codeigniter4/framework/system'``.
0 commit comments