-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
108 lines (73 loc) · 2.64 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.PHONY: test lib config
SHELL := /bin/bash
build:
npm install
npm run build
pip install -r requirements.txt
python setup.py develop
prod-build:
pip install -r requirements.txt
python setup.py develop
run:
source dev_variables.sh && pserve development.ini --reload
NOSEOPTS ?=
tests:
source test_variables.sh && nosetests -s $(NOSEOPTS)
npm-tests:
npm test
qa-index-redis:
source dev_variables.sh && NEX2_URI=$$QA_NEX2_URI && cap qa deploy:redis
qa-deploy:
source dev_variables.sh && NEX2_URI=$$QA_NEX2_URI && cap qa deploy
qa-restart:
source dev_variables.sh && NEX2_URI=$$QA_NEX2_URI && cap qa deploy:restart
curate-deploy:
npm run build:dev && source dev_variables.sh && NEX2_URI=$$CURATE_NEX2_URI && cap curate_dev deploy
preview-deploy:
source dev_variables.sh && NEX2_URI=$$CURATE_NEX2_URI && cap preview deploy
deploy:
npm run build && source dev_variables.sh && cap dev deploy
staging-deploy:
source prod_variables.sh && cap staging deploy
curate-staging-deploy:
npm run build && source prod_variables.sh && NEX2_URI=$$CURATE_NEX2_URI && CACHE_URLS=$$STAGING_CACHE_URLS && cap curate_staging deploy
curate-prod-deploy:
npm run build && source prod_variables.sh && NEX2_URI=$$CURATE_NEX2_URI && cap curate_prod deploy
prod-deploy:
npm run build && source prod_variables.sh && cap prod deploy
run-prod:
pserve production.ini --daemon --pid-file=/var/run/pyramid/backend.pid
stop-prod:
-pserve production.ini --stop-daemon --pid-file=/var/run/pyramid/backend.pid
lint:
eslint src/client/js/
refresh-cache:
source dev_variables.sh && python src/loading/scrapy/pages/spiders/pages_spider.py
index-es:
source dev_variables.sh && python scripts/search/index_elastic_search.py
index-es7:
source dev_variables.sh && python scripts/search/index_es_7.py
index-es-prod:
source prod_variables.sh && python scripts/search/index_elastic_search.py
index-redis:
source dev_variables.sh && python scripts/disambiguation/index_disambiguation.py
bgi-dev:
source dev_variables.sh && python scripts/bgi_json/bgi.py
bgi-prod:
source prod_variables.sh && python scripts/bgi_json/bgi.py
upload-expression-details:
source dev_variables.sh && python scripts/loading/upload_expression_details.py
load-triage:
source dev_variables.sh && python scripts/loading/load_reference_triage.py
crawl-site:
source prod_variables.sh && python src/loading/scrapy/pages/spiders/pages_spider.py
load-files:
source dev_variables.sh && CREATED_BY=fgondwe python scripts/loading/files/upload_files_fdb.py
tests-dev:
source dev_variables.sh && python test/test_dev.py
# docker commands
# run local elasticsarch service
es-up:
docker-compose up -d
es-down:
docker-compose down