This repository was archived by the owner on Mar 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
82 lines (59 loc) · 1.68 KB
/
Copy pathmakefile
File metadata and controls
82 lines (59 loc) · 1.68 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Backend ----------------------------------------------------------------------
.PHONY: backend-build
backend-build:
cd backend && cargo build
.PHONY: backend-run
backend-run:
cd backend && cargo run ./config/settings.yml
.PHONY: backend-test
backend-test:
cd backend && cargo test
# Frontend ---------------------------------------------------------------------
.PHONY: frontend-setup
frontend-setup:
cd frontend && npm install
.PHONY: frontend-build
frontend-build:
cd frontend && npm run-script build
.PHONY: frontend-lint
frontend-lint:
cd frontend && ./node_modules/eslint/bin/eslint.js src
.PHONY: frontend-run
frontend-run:
cd frontend && serve -s build
.PHONY: frontend-clean
frontend-clean:
rm -rf frontend/build
# Database --------------------------------------------------------------------
.PHONY: db-start
db-start:
docker-compose up -d db
.PHONY: db-stop
db-stop:
docker-compose stop db
.PHONY: db-deploy
db-deploy:
sqitch deploy db:pg://gif_zone:gif_zone@localhost
.PHONY: db-revert
db-revert:
sqitch revert -y db:pg://gif_zone:gif_zone@localhost
.PHONY: db-shell
db-shell:
PGPASSWORD=gif_zone psql -U gif_zone -h localhost gif_zone
# Docker -----------------------------------------------------------------------
.PHONY: backend-docker-build
backend-docker-build:
docker-compose build backend
.PHONY: backend-docker-run
backend-docker-run:
docker-compose up backend
.PHONY: frontend-docker-build
frontend-docker-build:
docker-compose build frontend
.PHONY: frontend-docker-run
frontend-docker-run:
docker-compose up web
# Local tls certs ---------------------------------------------------------------
.PHONY: gen-keys
gen-keys:
cd dev_config && ./gen_tls_keys.sh