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

Global installation no longer supported? #3773

Closed sandermarechal closed 5 months ago

sandermarechal commented 5 months ago

Is global installation of Deployer no longer supported? The documentation (https://deployer.org/docs/7.x/installation) only lists installation as a dev dependency inside the project. That is a no-go for us since we need to run deployer tasks before running composer install. Global installation was supported and documented for 6.x, see https://deployer.org/docs/6.x/installation

antonmedv commented 5 months ago

It is still possible. I just think installing Deployer per project make more sense.

Schrank commented 5 months ago

Having deployer in your project composer has the problem, that you need to need with a PHP version which supports both.

Our solution to this is, having a tools folder containing all tools as composer.json or even phar (phpunit, deployer, etc. (which still share a php version)) and run composer install there, and then use this phar or bin depending on the project.

Hope that helps!

lamasfoker commented 1 month ago

@antonmedv you can think on using this to enable a solution similar to the one proposed by @Schrank