add dev/prod options to Makefile

This commit is contained in:
lyx0 2024-01-11 01:26:27 +01:00
parent 911a0fb724
commit d2ce309228

View file

@ -2,7 +2,11 @@ BINARY_NAME=Nourybot-Matrix.out
dev: dev:
go build -o ${BINARY_NAME} cmd/bot/* go build -o ${BINARY_NAME} cmd/bot/*
./${BINARY_NAME} ./${BINARY_NAME} --env="dev"
prod:
go build -o ${BINARY_NAME} cmd/bot/*
./${BINARY_NAME} --env="prod"
build: build:
go build -o ${BINARY_NAME} cmd/bot/* go build -o ${BINARY_NAME} cmd/bot/*