Skip to content

Commit

Permalink
Fix path to database/nginx docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed Sep 29, 2020
1 parent 3553d76 commit 5395312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/beach/cmd/down.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func handleDownRun(cmd *cobra.Command, args []string) {
}

log.Info("Stopping database & nginx...")
commandArgs := []string{"-f", "/usr/local/lib/beach-cli/localbeach/docker-compose.yml", "rm", "--force", "--stop", "-v"}
commandArgs := []string{"-f", "/usr/local/lib/localbeach/docker-compose.yml", "rm", "--force", "--stop", "-v"}
err = exec.RunInteractiveCommand("docker-compose", commandArgs)
if err != nil {
log.Fatal(err)
Expand Down
4 changes: 2 additions & 2 deletions cmd/beach/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ func handleStartRun(cmd *cobra.Command, args []string) {
}

func startLocalBeach() error {
output, err := exec.RunCommand("docker-compose", []string{"-f", "/usr/local/lib/beach-cli/localbeach/docker-compose.yml", "ps", "-q"})
output, err := exec.RunCommand("docker-compose", []string{"-f", "/usr/local/lib/localbeach/docker-compose.yml", "ps", "-q"})
if err != nil {
return err
}
if len(output) == 0 {
log.Info("Starting nginx & database ...")
commandArgs := []string{"-f", "/usr/local/lib/beach-cli/localbeach/docker-compose.yml", "up", "--remove-orphans", "-d"}
commandArgs := []string{"-f", "/usr/local/lib/localbeach/docker-compose.yml", "up", "--remove-orphans", "-d"}
err = exec.RunInteractiveCommand("docker-compose", commandArgs)
if err != nil {
return err
Expand Down

0 comments on commit 5395312

Please sign in to comment.