-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
35 lines (19 loc) · 963 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
db:
sudo service postgresql start
frontend:
cd frontend && npm start
backend:
cd backend && go run main.go
migrate-up:
migrate -database "postgres://postgres:helloworld@db:5432/postgres?sslmode=disable" -path backend/Migrations/ up
migrate-down:
yes | migrate -database "postgres://postgres:helloworld@localhost:5432/postgres?sslmode=disable" -path backend/Migrations/ down
migrate-up-force:
migrate -database "postgres://postgres:helloworld@localhost:5432/postgres?sslmode=disable" -path backend/Migrations/ -verbose up
migrate-down-force:
migrate -database "postgres://postgres:helloworld@localhost:5432/postgres?sslmode=disable" -path backend/Migrations/ -verbose down
migrate-fix:
migrate -database "postgres://postgres:helloworld@localhost:5432/postgres?sslmode=disable" -path backend/Migrations/ force 1
nvm:
cd frontend && nvm install
.PHONY: frontend backend db migrate-up migrate-down migrate-up-force migrate-down-force nvm