diff --git a/Dockerfile b/Dockerfile index c91980d..88cb0db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ WORKDIR /backend-build COPY . . COPY --from=frontend /frontend-build/web/dist ./server/dist -RUN CGO_ENABLED=0 go build -o slash ./cmd/slash/main.go +RUN CGO_ENABLED=0 go build -o slash ./bin/slash/main.go # Make workspace with above generated files. FROM alpine:latest AS monolithic diff --git a/cmd/slash/main.go b/bin/slash/main.go similarity index 100% rename from cmd/slash/main.go rename to bin/slash/main.go diff --git a/scripts/.air.toml b/scripts/.air.toml index 79fc35d..8505f99 100644 --- a/scripts/.air.toml +++ b/scripts/.air.toml @@ -3,7 +3,7 @@ tmp_dir = ".air" [build] bin = "./.air/slash --mode dev" - cmd = "go build -o ./.air/slash ./cmd/slash/main.go" + cmd = "go build -o ./.air/slash ./bin/slash/main.go" delay = 1000 exclude_dir = [".air", "frontend", "build"] exclude_file = []