Skip to content

Commit 274274a

Browse files
author
reallyli
committed
multiple hosts
1 parent 9060e57 commit 274274a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/LaravelDeployer/DeployFile.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ protected function renderHosts()
140140
return $this->renderHostOptions($options);
141141
})
142142
->map(function ($options, $hostname) {
143+
$multipleHostName = explode(',', $hostname);
144+
if (count($multipleHostName) > 1) {
145+
$hostname = join("','", $multipleHostName);
146+
}
143147
return "host('$hostname')$options;";
144148
})
145149
->implode("\n\n");

0 commit comments

Comments
 (0)