add production flags

This commit is contained in:
lyx0 2021-10-29 17:08:02 +02:00
parent a2d34a5317
commit c466cc4e69
2 changed files with 8 additions and 4 deletions

View file

@ -9,4 +9,4 @@ WORKDIR /app
RUN cd cmd && go build -o Nourybot RUN cd cmd && go build -o Nourybot
CMD ["/app/cmd/Nourybot"] CMD ["/app/cmd/Nourybot -mode production"]

View file

@ -2,7 +2,11 @@ build:
cd cmd && go build -o Nourybot cd cmd && go build -o Nourybot
run: 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