-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (37 loc) · 947 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
37
38
39
40
41
42
43
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
## help: Print this help message
help:
@echo
@echo "Usage:"
@echo
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | sort
@echo
.PHONY: help
## backend: Build and run the backend from source
backend:
@cd backend && go run .
.PHONY: backend
## frontend: Build and run the frontend from source
frontend:
@npm install @vue/cli-service
@npx vue-cli-service serve
.PHONY: frontend
## dev: Build and run in docker compose
dev:
docker compose up --build -d
.PHONY: dev
## prod: Run the latest images in docker compose
prod:
@git pull
@docker pull ghcr.io/davegallant/rfd-fyi-backend
@docker pull ghcr.io/davegallant/rfd-fyi-frontend
@docker compose -f docker-compose.prod.yml up -d
.PHONY: prod
## teardown: Teardown docker
teardown:
docker compose down
.PHONY: teardown