Closed Seb33300 closed 1 year ago
Hi, I cannot find any information on that page too about passing the host using command line.
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.
I see. Right now it’s not supposed.
Hi. Try it like this
dep deploy -o branch=master -o hostname=example.com
Hi. Try it like this
dep deploy -o branch=master -o hostname=example.com
This doesn't work, that error is returned:
No host selected. Please, check your selector: ...
It still require to define the host in deploy.php
.
I am trying to pass the host directly in the command line and omit
host()
in mydeploy.php
:Any idea why the --hosts option is not working? In the documentation I can see that the command support host names. But no example is provided, so I used the "--host" option from 6.x documentation. My dev environment is on Windows, I cannot install the completion script.
The deployment is working properly if I add
host('exemple.com');
in mydeploy.php
and remove the hosts option.I also tried: