Skip to content

Commit 3ef368c

Browse files
committed
rename registrar to main.go
1 parent 002636c commit 3ef368c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

node-registrar/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN go mod download
88

99
COPY /node-registrar .
1010

11-
RUN go build -o server ./cmds/registrar.go
11+
RUN go build -o server ./cmds/main.go
1212

1313
FROM alpine:3.21
1414

node-registrar/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
go run cmds/registrar.go --postgres-host localhost --postgres-port 5432 --postgres-db postgres --postgres-user postgres --postgres-password password --domain localhost --server-port 8080
2+
go run cmds/main.go --postgres-host localhost --postgres-port 5432 --postgres-db postgres --postgres-user postgres --postgres-password password --domain localhost --server-port 8080
33

44
postgres:
55
docker run --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=postgres -p 5432:5432 -d postgres
@@ -8,10 +8,10 @@ stop-postgres:
88
docker stop postgres && docker rm postgres
99

1010
build: ## Bulil the server
11-
go build -o bin/server cmds/registrar.go
11+
go build -o bin/server cmds/main.go
1212

1313
server-start:
14-
@go run cmds/registrar.go \
14+
@go run cmds/main.go \
1515
--server-port 8080 \
1616
--debug \
1717
--domain localhost \

0 commit comments

Comments
 (0)