deployphp / deployer

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

Pass host definition from args #3696

Closed antonmedv closed 2 weeks ago

antonmedv commented 1 year ago
          Using selector/alias (last example from my initial post) still require to define hosts in `deploy.php`

But this is what I am trying to avoid.

Originally posted by @Seb33300 in https://github.com/deployphp/deployer/issues/3692#issuecomment-1727956595

Upvote & Fund

Fund with Polar

Seb33300 commented 11 months ago

For now, I bypassed that limitation by defining an environment variable in my CD pipeline and modifying my deploy.php as following:

host($_SERVER['my-variable']);
github-actions[bot] commented 2 weeks ago

This issue has been automatically closed. Please, open a discussion for bug reports and feature requests.

Read more: [https://github.com/deployphp/deployer/discussions/3888]

github-actions[bot] commented 2 weeks ago

This issue has been automatically closed. Please, open a discussion for bug reports and feature requests.

Read more: [https://github.com/deployphp/deployer/discussions/3888]