Skip to content

Commit

Permalink
add a --no-cache option to convox start
Browse files Browse the repository at this point in the history
  • Loading branch information
gmelika authored and nzoschke committed Jan 27, 2016
1 parent 5c24cfb commit 6a93c9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/convox/start.go
Expand Up @@ -26,6 +26,10 @@ func init() {
Value: "docker-compose.yml",
Usage: "a file to use in place of docker-compose.yml",
},
cli.BoolFlag{
Name: "no-cache",
Usage: "Do not use Docker cache during build.",
},
},
})
stdcli.RegisterCommand(cli.Command{
Expand Down Expand Up @@ -96,7 +100,7 @@ func cmdStart(c *cli.Context) {
return
}

errors := m.Build(app, dir, true)
errors := m.Build(app, dir, !c.Bool("no-cache"))

if len(errors) != 0 {
fmt.Printf("errors: %+v\n", errors)
Expand Down

0 comments on commit 6a93c9e

Please sign in to comment.