Skip to content

Commit 95b8eaa

Browse files
committed
renamed build file and added infolog before server run
1 parent 963ac6a commit 95b8eaa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dockerfile.server

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ COPY . .
66

77
RUN go mod download
88
RUN apk update && apk add bash && bash setup-env.sh docker
9-
RUN go build -o server
9+
RUN go build -o run-app
1010

1111
EXPOSE 3000
1212

13-
CMD [ "./server" ]
13+
CMD [ "./run-app" ]

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
func main() {
1111
app := server.New()
12+
utils.InfoLog.Println("starting the server on port", os.Getenv("API_PORT"))
1213
if err := app.Listen(os.Getenv("API_PORT")); err != nil {
1314
utils.ErrorLog.Panic(err.Error())
1415
}

0 commit comments

Comments
 (0)