forked from billy4479/telegram-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 737 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
GO ?= go
all: backend frontend
backend:
mkdir -p build
cd ./backend && \
$(GO) build -o ../build/telegram-storage
backend-dev:
cd build && \
CompileDaemon \
-build='make -C .. backend' \
-command='./telegram-storage -loadEnv ../.env' \
-directory=../backend
frontend:
mkdir -p build/public
yarn --cwd frontend build
cp -r frontend/build/* build/public
frontend-dev:
yarn --cwd frontend dev --host
docker:
docker-compose -f docker-compose.prod.yml up --build
docker-dev:
docker-compose up
docker-clean:
docker-compose -f docker-compose.prod.yml rm
docker-dev-clean:
docker-compose rm
sudo rm -r ./db-data
.PHONY: all backend backend-dev frontend frontend-dev docker docker-dev docker-clean docker-dev-clean