| Q | A
| ----------------- | ---
| Issue Type | Bug / Feature Request
| Deployer Version | 6
| Local Machine OS | OS X 10.13
| Remote Machine OS | Redhat 7
Tried to add ranges to the host or hostname in the hosts.yml file
Not sure if this a bug or feature request but likely the latter
production:
hostname: www[01-05].example.com
stage: production
deploy.php
inventory('hosts.yml');
The command "rm -f /var/www/example/.dep/deploy.lock" failed.
Exit Code: -1 (Unknown error)
Host Name: www[01:05].example.com
================
ssh: Could not resolve hostname www[01:05].example.com: nodename nor servname provided, or not known
Oh this change looks promising https://github.com/deployphp/deployer/pull/1541
Will fix it.
Fixed.
Thanks @antonmedv
Should this work as well with the hostname key?
production:
hostname: www[01-05].example.com
stage: production
I gave it a whirl and doesn't seem to work with hostname key. But a big thanks, that was a fast fix!
I'll fix hostname in next v7 release, as I'm going to refactor this part of deployer.
I can work around that, thanks again for the fix