Skip to content

Commit f40dc03

Browse files
committed
change default port to be consistent between analyzers
Signed-off-by: Maxim Sukharev <max@smacker.ru>
1 parent 4fda103 commit f40dc03

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.helm_staging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
app:
22
dataServiceUrl: ipv4://lookout-work:10301
3+
port: 9930
34

45
nodeSelector:
56
srcd.host/app: lookout

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Install the analyzer, and run it:
99

1010
```shell
1111
$ go install github.com/src-d/lookout-terraform-analyzer/cmd/lookout-terraform-analyzer
12-
$ PORT=2001 lookout-terraform-analyzer
12+
$ lookout-terraform-analyzer
1313
```
1414

1515
The analyzer will start listening for pull review requests from lookout.
@@ -28,7 +28,7 @@ $ wget -O - https://raw.githubusercontent.com/src-d/lookout-sdk/master/_tools/in
2828
And then run:
2929

3030
```shell
31-
$ ./lookout-sdk review ipv4://localhost:2001
31+
$ ./lookout-sdk review
3232
```
3333

34-
It will mock a Pull Request containing the changes made by `HEAD` over `HEAD~1`, and it will send it to `lookout-terraform-analyzer` that you ran in the [previous step](#usage) and is listening under the specified port (dafault is `2001`)
34+
It will mock a Pull Request containing the changes made by `HEAD` over `HEAD~1`, and it will send it to `lookout-terraform-analyzer` that you ran in the [previous step](#usage).

cmd/lookout-terraform-analyzer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const maxMessageSize = 100 * 1024 * 1024 //100mb
2525

2626
type config struct {
2727
Host string `envconfig:"HOST" default:"0.0.0.0"`
28-
Port int `envconfig:"PORT" default:"2001"`
28+
Port int `envconfig:"PORT" default:"9930"`
2929
DataServiceURL string `envconfig:"DATA_SERVICE_URL" default:"ipv4://localhost:10301"`
3030
LogLevel string `envconfig:"LOG_LEVEL" default:"info"`
3131
}

0 commit comments

Comments
 (0)