Skip to content

Commit ce93ccd

Browse files
committed
Update hosts.md
1 parent 538d47d commit ce93ccd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/hosts.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,20 @@ Deployer will not connect to this host and will execute commands locally.
123123
localhost(); // Alias and hostname will be "localhost".
124124
localhost('ci'); // Alias is "ci", hostname is "localhost".
125125
```
126+
127+
## YAML Inventory
128+
129+
You can use [import()](api.md#import) function to keep host separately in, for
130+
example, *inventory.yaml* file.
131+
132+
```php title="deploy.php"
133+
import('inventory.yaml');
134+
```
135+
136+
```yaml title="inventory.yaml"
137+
hosts:
138+
example.org:
139+
remote_user: deployer
140+
deployer.org:
141+
remote_user: deployer
142+
```

0 commit comments

Comments
 (0)