Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffy-mathew committed Jun 13, 2024
1 parent be86739 commit 428a690
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion auto/deps_pro-ha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ services:
build:
context: ./webhook-server
ports:
- "9003:8080"
- "9003:9003"
2 changes: 1 addition & 1 deletion auto/deps_pro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ services:
build:
context: ./webhook-server
ports:
- "9003:8080"
- "9003:9003"
4 changes: 2 additions & 2 deletions auto/webhook-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ COPY . .
# Build the Go app
RUN go build -o webhook .

# Expose port 8080 to the outside world
EXPOSE 8080
# Expose port 9003 to the outside world
EXPOSE 9003

# Command to run the executable
CMD ["./webhook"]
1 change: 1 addition & 0 deletions auto/webhook-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ A simple Go application to receive and store webhook events, and retrieve them b
## Usage

### Start webhook server

`go run main.go` runs the webhook server listening on port `8080`.

### Sending a Webhook Event
Expand Down
4 changes: 2 additions & 2 deletions auto/webhook-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func main() {
http.HandleFunc("/webhook/", webhookHandler)
http.HandleFunc("/requests/", requestsHandler)

fmt.Println("Starting server on :8080")
if err := http.ListenAndServe(":8080", nil); err != nil {
fmt.Println("Starting server on :9003")
if err := http.ListenAndServe(":9003", nil); err != nil {
log.Fatalf("Could not start server: %s\n", err)
}
}

0 comments on commit 428a690

Please sign in to comment.