This repository has been archived by the owner on Jul 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (30 loc) · 1.39 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
all: build
lock:
cd backend && pipenv lock --requirements > requirements.txt
build: lock
COMPOSE_PROJECT_NAME=eurotoken docker-compose build
up:
COMPOSE_PROJECT_NAME=eurotoken docker-compose up
upb: lock
COMPOSE_PROJECT_NAME=eurotoken docker-compose up --build
run:
COMPOSE_PROJECT_NAME=eurotoken docker-compose -H ssh://bloodyfool@161.97.114.29 -f docker-compose-deploy.yml up
runb:
COMPOSE_PROJECT_NAME=eurotoken docker-compose -H ssh://bloodyfool@161.97.114.29 -f docker-compose-deploy.yml up --build
start:
COMPOSE_PROJECT_NAME=eurotoken docker-compose -H ssh://bloodyfool@161.97.114.29 -f docker-compose-deploy.yml up -d
stop:
COMPOSE_PROJECT_NAME=eurotoken docker-compose -H ssh://bloodyfool@161.97.114.29 -f docker-compose-deploy.yml stop
restart:
COMPOSE_PROJECT_NAME=eurotoken docker-compose -H ssh://bloodyfool@161.97.114.29 -f docker-compose-deploy.yml restart
deploy: lock
cd frontend && npm run build
COMPOSE_PROJECT_NAME=eurotoken docker-compose -H ssh://bloodyfool@161.97.114.29 -f docker-compose-deploy.yml up -d --build
deploya: lock
COMPOSE_PROJECT_NAME=eurotoken docker-compose -H ssh://bloodyfool@161.97.114.29 -f docker-compose-deploy.yml up -d --build app
clear:
@(rm backend/eval/keys/* || true) > /dev/null 2>&1
@(rm backend/eval/keys/sync/* || true) > /dev/null 2>&1
@(rm backend/eval/keys/database/* || true) > /dev/null 2>&1
eval: clear
bash ./run_eval.sh