deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.41k stars 1.47k forks source link

Copy vendors during deploy:vendors #3736

Closed skyferix closed 7 months ago

skyferix commented 7 months ago

Some project in companies have non-public packages when deploying they rely that if package is not updated that it would simply be used form existing vendor folder.

I have two changes to the vendors.php file in mind.

  1. Add option true/false to check to either copy or not to copy the vendors dir.
  2. Check existing composer options and if found --prefered-dist automatically copy vendors directory.

I do not mind to create the pull request in my free time but first I would like to get the feedback with which option to proceed if any.

antonmedv commented 7 months ago

Check existing composer options and if found --prefered-dist automatically copy vendors directory.

I did not get it.

skyferix commented 7 months ago

I meant to copy vendors directory between releases but i see that there is already such option deploy:copy_dirs. mb