-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (31 loc) · 1.13 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
app: migrate
docker-compose up -d app ui-app adminer proxy
ui-app:
docker-compose up -d ui-app
test: migratetestdb
docker-compose run --rm test
testcli: migratetestdb
docker-compose run --rm test bash
bounce:
docker-compose kill app && docker-compose up -d app
migrate: db
docker-compose run --rm app bash -c "goose -dir migrations postgres postgres://keygo:keygo@db:5432/keygo?sslmode=disable up"
migratetestdb:
docker-compose run --rm test bash -c "goose -dir migrations postgres postgres://keygo:keygo@testdb:5432/keygo?sslmode=disable up"
migratedown: db
docker-compose run --rm app bash -c "goose -dir migrations postgres postgres://keygo:keygo@db:5432/keygo?sslmode=disable down"
new-migration: db
docker-compose run --rm app bash -c "cd migrations && goose create change_me sql"
db:
docker-compose up -d db
fresh:
docker-compose kill db
docker-compose rm -f db
make migrate
adminer:
docker-compose up -d adminer
install-js-deps:
docker-compose run --rm ui-app npm install
proxy:
docker-compose up -d proxy
.PHONY: app ui-app test bounce migrate migratetestdb migratedown new-migration db fresh adminer install-js-deps proxy