-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (24 loc) · 896 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
default: setup app
app:
@docker-compose up -d app
test:
@docker-compose up app-test
test-integration:
@docker-compose up app-test-integration
test-e2e:
@docker-compose up app-test-e2e
test-unit:
@docker-compose up app-test-unit
setup: migrate
database:
@docker-compose up -d database
lint: app
@docker-compose up app-lint
migrate: database
@docker-compose run --entrypoint="node_modules/.bin/sequelize db:migrate --config src/config/database.js --migrations-path src/database/migrations/" app
migrate-undo:
@docker-compose run --entrypoint="node_modules/.bin/sequelize db:migrate:undo --config src/config/database.js --migrations-path src/database/migrations/" app
migrate-undo-all:
@docker-compose run --entrypoint="node_modules/.bin/sequelize db:migrate:undo:all --config src/config/database.js --migrations-path src/database/migrations/" app
down:
@docker-compose down