-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
52 lines (37 loc) · 1.34 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
46
47
48
49
50
51
52
.PHONY: database backend frontend
.EXPORT_ALL_VARIABLES:
# IMPERSONATE ?= bop-admin
DEBUG ?= true
PATH := "$(PATH):$(HOME)/go/bin:$(HOME)/bin:$(HOME)/.local/bin:$(HOME)/Library/Python/2.7/bin:"
all:
cd backend && make
run:
./scripts/stack.sh
run-development:
BOP_S3_PUBLIC_BUCKET=digital-platform-dev-files \
PIVOT_ENV=development ./scripts/stack.sh
run-production:
BOP_S3_PUBLIC_BUCKET=digital-platform-prod-files \
PIVOT_ENV=production ./scripts/stack.sh
run-db:
cd database && pivot -s schema -L debug -Q web
run-backend:
cd backend && ./env/bin/python server.py
run-frontend:
cd frontend && diecast
run-worker:
cd backend && make run-worker
tail:
tail -f logs/*
stop:
test -f scripts/supervisord.pid
kill `cat scripts/supervisord.pid`
shell:
cd backend && make shell
tools-dist-linux:
GO111MODULE=on GOOS=linux go build -o bin/linux/pivot -ldflags="-s -w" github.com/ghetzel/pivot/v3/pivot
GO111MODULE=on GOOS=linux go build -o bin/linux/diecast -ldflags="-s -w" github.com/ghetzel/diecast/cmd/diecast
tools-dist-darwin:
GO111MODULE=on GOOS=darwin go build -o bin/darwin/pivot -tags nocgo -ldflags="-s -w" github.com/ghetzel/pivot/v3/pivot
GO111MODULE=on GOOS=darwin go build -o bin/darwin/diecast -tags nocgo -ldflags="-s -w" github.com/ghetzel/diecast/cmd/diecast
tools-dist: tools-dist-linux tools-dist-darwin