-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·53 lines (35 loc) · 1.16 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: build build-no-cache db-create-migration db-migrate db-rollback down logs up up-silent
SERVICE_NAME=nfc_scrapper
build:
@docker-compose build --pull
build-no-cache:
@docker-compose build --no-cache --pull
db-create:
@docker-compose exec ${SERVICE_NAME} sequelize db:create
db-create-migration:
@docker-compose exec ${SERVICE_NAME} sequelize migration:create --name=${name}
db-create-seed:
@docker-compose exec ${SERVICE_NAME} sequelize seed:generate --name ${name}
db-drop:
@docker-compose exec ${SERVICE_NAME} sequelize db:drop
db-migrate:
@docker-compose exec ${SERVICE_NAME} sequelize db:migrate
db-reset: db-drop db-create db-migrate
db-rollback:
@docker-compose exec ${SERVICE_NAME} sequelize db:migrate:undo
db-seed:
@docker-compose exec ${SERVICE_NAME} sequelize db:seed:all
db-seed-undo:
@docker-compose exec ${SERVICE_NAME} sequelize db:seed:undo:all
down:
@docker-compose stop ${SERVICE_NAME}
logs:
@docker-compose logs --follow
shell:
@docker-compose exec ${SERVICE_NAME} sh
test:
@docker-compose run --rm ${SERVICE_NAME} npm test -- ${ARGS}
up:
@docker-compose up ${SERVICE_NAME}
up-silent:
@docker-compose up -d ${SERVICE_NAME}