mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
have production as default
This commit is contained in:
parent
c466cc4e69
commit
fdf31e7eec
|
@ -9,4 +9,4 @@ WORKDIR /app
|
|||
|
||||
RUN cd cmd && go build -o Nourybot
|
||||
|
||||
CMD ["/app/cmd/Nourybot -mode production"]
|
||||
CMD ["/app/cmd/Nourybot"]
|
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue