Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 00ad2a2

Browse filesBrowse files
authored
📚 Document upload_vendors option
See issue #18
1 parent 7c4e77e commit 00ad2a2
Copy full SHA for 00ad2a2

File tree

Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed

‎docs/strategy-upload.md

Copy file name to clipboardExpand all lines: docs/strategy-upload.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ The default path being uploaded to your server is the root of your application.
2424
],
2525
```
2626

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:
2830
* 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.
3032
* The `node_modules` folder since the assets have been already compiled locally.
3133

3234
```php
@@ -36,7 +38,7 @@ By default, the upload excludes the following folders:
3638
'upload_options' => [
3739
'options' => [
3840
'--exclude=.git',
39-
'--exclude=vendor',
41+
'--exclude=/vendor', // unless `upload_vendors` is set to `true`
4042
'--exclude=node_modules',
4143
],
4244
],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.