Skip to content

Commit 388aa54

Browse files
authored
fix: Redis client using wrong config type & Dockerfile start commands (#3)
* fix: Redis client using wrong config type * fix: Specify service in start command in development Dockerfiles
1 parent f1a9490 commit 388aa54

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

configs/api.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ COPY . .
55

66
RUN go install -mod=mod github.com/githubnemo/CompileDaemon
77

8-
ENTRYPOINT CompileDaemon --build="go build -o ./bin/api ./cmd/app/main.go" --command="./bin/api api"
8+
ENTRYPOINT CompileDaemon --build="go build -o ./bin/api ./cmd/app/main.go" --command="./bin/api --service api"

configs/data.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ COPY . .
55

66
RUN go install -mod=mod github.com/githubnemo/CompileDaemon
77

8-
ENTRYPOINT CompileDaemon --build="go build -o ./bin/data ./cmd/app/main.go" --command="./bin/data data"
8+
ENTRYPOINT CompileDaemon --build="go build -o ./bin/data ./cmd/app/main.go" --command="./bin/data --service data"

configs/delivery.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ COPY . .
55

66
RUN go install -mod=mod github.com/githubnemo/CompileDaemon
77

8-
ENTRYPOINT CompileDaemon --build="go build -o ./bin/delivery ./cmd/app/main.go" --command="./bin/delivery delivery"
8+
ENTRYPOINT CompileDaemon --build="go build -o ./bin/delivery ./cmd/app/main.go" --command="./bin/delivery --service delivery"

internal/redis/redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const (
2020
func Client() *r.Client {
2121
once.Do(func() {
2222
rdb = r.NewClient(&r.Options{
23-
Addr: fmt.Sprintf("%s:%s", config.RedisHost, config.RedisPort),
23+
Addr: fmt.Sprintf("%s:%d", config.RedisHost, config.RedisPort),
2424
Password: config.RedisPassword,
2525
DB: config.RedisDatabase,
2626
})

0 commit comments

Comments
 (0)