have production as default

This commit is contained in:
lyx0 2021-10-29 17:19:41 +02:00
parent c466cc4e69
commit fdf31e7eec
3 changed files with 3 additions and 3 deletions

View file

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

View file

@ -2,7 +2,7 @@ build:
cd cmd && go build -o Nourybot
run:
cd cmd && ./Nourybot -mode dev
cd cmd && ./Nourybot
dev:
cd cmd && go build -o Nourybot && ./Nourybot -mode dev

View file

@ -18,7 +18,7 @@ var nb *bot.Bot
func main() {
// No need to join every channel when on development mode.
runMode := flag.String("mode", "dev", "Mode in which to run. (dev/production")
runMode := flag.String("mode", "production", "Mode in which to run. (dev/production")
flag.Parse()
conf := config.LoadConfig()