mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add rebuild to Makefile.
rebuild builds a new docker image with docker compose, afterwards docker compose down and then docker compose up -d
This commit is contained in:
parent
f8e157fe91
commit
186c3d7b21
35
Makefile
35
Makefile
|
@ -1,41 +1,18 @@
|
|||
BINARY_NAME=Nourybot.out
|
||||
BINARY_NAME_API=NourybotApi.out
|
||||
|
||||
|
||||
xdprod:
|
||||
cd cmd/nourybot && go build -o ${BINARY_NAME}
|
||||
mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME}
|
||||
./bin/${BINARY_NAME} -env="prod"
|
||||
|
||||
jq:
|
||||
cd cmd/nourybot && go build -o ${BINARY_NAME}
|
||||
mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME}
|
||||
./bin/${BINARY_NAME} -env="dev" | jq
|
||||
|
||||
jqprod:
|
||||
cd cmd/nourybot && go build -o ${BINARY_NAME}
|
||||
mv cmd/nourybot/${BINARY_NAME} ./bin/${BINARY_NAME}
|
||||
./bin/${BINARY_NAME} -env="prod" | jq
|
||||
|
||||
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
|
||||
|
||||
rebuild:
|
||||
docker compose down
|
||||
docker compose build
|
||||
docker compose up -d
|
||||
|
||||
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"
|
||||
docker compose up
|
||||
|
|
Loading…
Reference in a new issue