You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
task('my:func', function () {
echo'You would think that this would not prompt me to select hosts if the host has been selected for me.';
})
->once()
->select('localhost')
->desc('My awesome function');
localhost();
Steps to reproduce
Have deploy.yml and deploy.php set up as I do and run dep my:func and you'll see that it prompts you to select your hosts even though the select function is used and set to localhost so I'd expect to not be prompted.
What's weird is when you're prompted and select any host other than "localhost", it says "Done" and freezes where I have to Ctrl+C out to be able to do anything. If you select "localhost" every runs fine and as expected.
This also works if I change the parameter in the select function to something like "staging", if I run the task and select anything else other than "staging", it freezes, if I select "staging", it runs fine.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Deployer Version
v7.5.8
Target OS
Ubuntu 24.04
Which PHP version are you using?
PHP 8.2.26
Content of deploy.php or deploy.yaml
deploy.yml
:deploy.php
:Steps to reproduce
Have
deploy.yml
anddeploy.php
set up as I do and rundep my:func
and you'll see that it prompts you to select your hosts even though theselect
function is used and set tolocalhost
so I'd expect to not be prompted.What's weird is when you're prompted and select any host other than "localhost", it says "Done" and freezes where I have to Ctrl+C out to be able to do anything. If you select "localhost" every runs fine and as expected.
This also works if I change the parameter in the
select
function to something like "staging", if I run the task and select anything else other than "staging", it freezes, if I select "staging", it runs fine.Beta Was this translation helpful? Give feedback.
All reactions