-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (44 loc) · 1.24 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
53
54
55
56
57
58
59
60
61
62
include .env
compose_file := docker-compose.yml
compose_file_kibana := docker-compose.elk.yml
compose := docker compose -f $(compose_file)
compose_kibana := docker compose -f $(compose_file_kibana)
service := web
build:
$(compose) build --parallel
up_db:
$(compose) up -d db
up: build
$(compose) up -d
up_from_image:
$(compose) up -d
down:
$(compose) down
up_kibana:
$(compose_kibana) up -d
down_kibana:
$(compose_kibana) down
make_all_migrations:
$(compose) exec web python manage.py makemigrations payments purchases rates transfers api_auth withdrawals
migrate_all:
$(compose) exec web python manage.py migrate
shell:
$(compose) exec web python manage.py shell_plus
ps:
$(compose) ps -a $(service)
ps_kibana:
$(compose_kibana) ps -a $(service)
logs:
$(compose) logs --tail 1000 -f $(service)
remove_migrations:
bash -c "for file in $$(find gold_crowdsale -name 000*); do sudo rm -rf $$file; done"
withdraw_btc:
$(compose) exec web python manage.py withdraw_btc_funds
withdraw_eth:
$(compose) exec web python manage.py withdraw_eth_funds
fix_filebeat_permissions:
sudo chown root:root filebeat.yml
sudo chmod 644 filebeat.yml
prepare_elastic:
mkdir -p .docker/elasticsearch_data
sudo chown -R 1000:1000 .docker/elasticsearch_data