mirror of
https://github.com/danbulant/docker-compose
synced 2026-05-24 12:35:32 +00:00
docs(readme): fix example
This commit is contained in:
parent
7b01ec7ef9
commit
8f32f30da6
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ All commands return a `Promise({object})` with an stdout and stderr strings
|
||||||
To start containers based on the `docker-compose.yml` file in your current directory, just call `compose.up` like this:
|
To start containers based on the `docker-compose.yml` file in your current directory, just call `compose.up` like this:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
compose.up({ cwd: path.join(__dirname), log: true })
|
compose.upAll({ cwd: path.join(__dirname), log: true })
|
||||||
.then(
|
.then(
|
||||||
() => { console.log('done')},
|
() => { console.log('done')},
|
||||||
err => { console.log('something went wrong:', err.message)}
|
err => { console.log('something went wrong:', err.message)}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue