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
Copy file name to clipboardExpand all lines: docs/strategy-upload.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,11 @@ The default path being uploaded to your server is the root of your application.
24
24
],
25
25
```
26
26
27
-
By default, the upload excludes the following folders:
27
+
By default, the upload excludes the `vendor` folder at the root of your project and performs a `deploy:vendors` (i.e. a composer install) instead. If you wish to decouple your hosts from your composer dependencies, you can disable this behavior by setting the `upload_vendors` option to `true`. This option will (during an upload strategy only) skip the `deploy:vendors` task and will not exclude the `vendor` folder from the `rsync` command. You can [read more about the pros and cons of both approaches in this thread](https://github.com/lorisleiva/laravel-deployer/issues/18#issuecomment-396293695).
28
+
29
+
Therefore, by default, the upload excludes the following folders:
28
30
* The `.git` folder since its irrelevant to the server's release.
29
-
* The `vendor` folder since its more efficient to do a `deploy:vendors` directly on the server.
31
+
* The `vendor` folder (**unless `upload_vendors` is set to `true`**) since its more efficient to do a `deploy:vendors` directly on the server.
30
32
* The `node_modules` folder since the assets have been already compiled locally.
31
33
32
34
```php
@@ -36,7 +38,7 @@ By default, the upload excludes the following folders:
36
38
'upload_options' => [
37
39
'options' => [
38
40
'--exclude=.git',
39
-
'--exclude=vendor',
41
+
'--exclude=/vendor', // unless `upload_vendors` is set to `true`
0 commit comments