Skip to content

Commit

Permalink
remove log directory in the nginx layer
Browse files Browse the repository at this point in the history
[#163207221]

Co-authored-by: Daniel Mikusa <[email protected]>
  • Loading branch information
ForestEckhardt and Daniel Mikusa committed Jul 30, 2019
1 parent 070ae15 commit d758f5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nginx/contributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ func (c Contributor) Contribute() error {
return err
}

// Remove as we use `/workspace/logs` instead
if err := os.RemoveAll(filepath.Join(layer.Root, "logs")); err != nil {
return err
}

nginxConfPath := filepath.Join(c.app.Root, "nginx.conf")
appModsPath := filepath.Join(c.app.Root, "modules")
pkgModsPath := filepath.Join(layer.Root, "modules")
Expand Down

0 comments on commit d758f5d

Please sign in to comment.