mirror-nourybot/Makefile

42 lines
910 B
Makefile
Raw Normal View History

2023-03-03 21:24:21 +01:00
BINARY_NAME=Nourybot.out
BINARY_NAME_API=NourybotApi.out
2021-10-20 01:00:12 +02:00
2023-03-03 21:24:21 +01:00
xdprod:
2023-08-08 00:41:11 +02:00
cd cmd/nourybot && go build -o ${BINARY_NAME}
mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME}
./bin/${BINARY_NAME} -env="prod"
2022-08-07 16:08:25 +02:00
jq:
2023-08-08 00:41:11 +02:00
cd cmd/nourybot && go build -o ${BINARY_NAME}
mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME}
./bin/${BINARY_NAME} -env="dev" | jq
2023-03-03 21:24:21 +01:00
jqprod:
2023-08-08 00:41:11 +02:00
cd cmd/nourybot && go build -o ${BINARY_NAME}
mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME}
./bin/${BINARY_NAME} -env="prod" | jq
2023-03-03 22:16:00 +01:00
2023-12-03 20:50:38 +01:00
build:
cd cmd/nourybot && go build -o ${BINARY_NAME}
mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME}
run:
./bin/${BINARY_NAME} -env="prod"
up:
docker compose up
down:
docker compose down
xd:
docker compose down
docker compose build
docker compose up
prod:
cd cmd/nourybot && go build -o ${BINARY_NAME}
mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME}
./bin/${BINARY_NAME} -env="prod"