Skip to content

Commit

Permalink
update port
Browse files Browse the repository at this point in the history
  • Loading branch information
imrkgofficial committed Dec 1, 2024
1 parent 8695451 commit 619491a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ COPY --from=builder /app/app /app/
COPY --from=builder /app/src /app/src

# Expose the port your application will listen on
EXPOSE 10001
EXPOSE 80

# Run the Go application
CMD ["/app/app"]
Binary file modified README.md
Binary file not shown.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func main() {
log.Println("Server is starting on port 10001...")
log.Println("Server is starting on port 80...")
http.Handle("/", http.FileServer(http.Dir("src")))

http.HandleFunc("/getBankDetails", func(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -75,7 +75,7 @@ func main() {
})

// Log that the application has started and is running
log.Println("Application is started and running on port 10001")
log.Println("Application is started and running on port 80")

log.Fatal(http.ListenAndServe(":10001", nil))
log.Fatal(http.ListenAndServe(":80", nil))
}

0 comments on commit 619491a

Please sign in to comment.