deployer icon indicating copy to clipboard operation
deployer copied to clipboard

Pass host definition from args

Open antonmedv opened this issue 2 years ago • 1 comments

          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

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

antonmedv avatar Sep 20 '23 18:09 antonmedv

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']);

Seb33300 avatar Nov 02 '23 02:11 Seb33300