Skip to content

Commit

Permalink
Fix the path where ngrok is
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcvent committed Jun 23, 2021
1 parent 3b8dbca commit 61a96c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testdrive/testdrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ Follow these instructions to create a token (we don't store any tokens):
}
s.Stop()
colorstring.Println("[green]=> downloaded ngrok successfully![reset]")
ngrokPath = "/tmp/ngrok"
} else {
colorstring.Printf("[green]=> ngrok found in $PATH at %s\n[reset]", ngrokPath)
}
Expand Down Expand Up @@ -195,7 +196,7 @@ tunnels:
tunnelReadyLog := regexp.MustCompile("client session established")
tunnelTimeout := 20 * time.Second
cancelNgrok, ngrokErrors, err := execAndWaitForStderr(&wg, tunnelReadyLog, tunnelTimeout,
"/tmp/ngrok", "start", "atlantis", "--config", ngrokConfigFile.Name(), "--log", "stderr", "--log-format", "term")
ngrokPath, "start", "atlantis", "--config", ngrokConfigFile.Name(), "--log", "stderr", "--log-format", "term")
// Check if we got a fast error. Move on if we haven't (the command is still running).
if err != nil {
s.Stop()
Expand Down

0 comments on commit 61a96c6

Please sign in to comment.