forked from pedro-mealha/euromillions-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 756 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
24
25
26
27
28
29
30
31
32
33
34
35
36
SCRIPTS_PATH=scripts
CRONJOBS_PATH=${SCRIPTS_PATH}/cronjobs
ifneq ("$(wildcard ./.env)","")
include .env
endif
start:
flask run
add-draws:
python3 -m scripts.cronjobs.add_new_draws
setup:
python3 -m scripts.setup $(year)
new-migration:
yoyo new ./db/migrations -m "$(name)"
migrate:
yoyo apply --database postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/${DB_NAME}?schema=${DB_SCHEMA}&port=${DB_PORT}
migrate-rollback:
yoyo rollback --database postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/${DB_NAME}?schema=${DB_SCHEMA}&port=${DB_PORT}
logs-prod:
flyctl logs --app prod-euromillions-api
logs-stg:
flyctl logs --app staging-euromillions-api
start-docker:
docker-compose up --build -d
start-db:
docker-compose up --build -d -- db