From c466cc4e69a55c051d7a782d1ded6d4f966fc523 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Fri, 29 Oct 2021 17:08:02 +0200 Subject: [PATCH] add production flags --- Dockerfile | 2 +- Makefile | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4b10f24..8c7396c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,4 @@ WORKDIR /app RUN cd cmd && go build -o Nourybot -CMD ["/app/cmd/Nourybot"] \ No newline at end of file +CMD ["/app/cmd/Nourybot -mode production"] \ No newline at end of file diff --git a/Makefile b/Makefile index aa53781..2f9efa9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,11 @@ build: cd cmd && go build -o Nourybot run: - cd cmd && ./Nourybot + cd cmd && ./Nourybot -mode dev + +dev: + cd cmd && go build -o Nourybot && ./Nourybot -mode dev + +prod: + cd cmd && go build -o Nourybot && ./Nourybot -mode production -xd: - cd cmd && go build -o Nourybot && ./Nourybot