-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
23 lines (18 loc) · 893 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.DEFAULT_GOAL := serve
serve:
cd webservice && yarn install && cd .. && \
cd discordbot && yarn install && cd .. && \
cd game && yarn install && cd .. && \
cp .env discordbot && cp .env webservice && cp .env websocket && cp .env game && \
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -p d1337lands up --build --remove-orphans -d
migrate:
cd database && \
hasura migrate apply --skip-update-check --database-name default --envfile ../.env && \
hasura seed apply --skip-update-check --database-name default --envfile ../.env && \
hasura metadata apply --skip-update-check --envfile ../.env && cd ..
db_console:
cd database && hasura console --skip-update-check --envfile ../.env --insecure-skip-tls-verify --no-browser --address=0.0.0.0
down:
docker-compose down
remove_volume:
docker volume ls | grep -q d1337lands_d1337db && docker volume rm d1337lands_d1337db