forked from alliance-genome/agr_archive_initial_prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 616 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 616 Bytes
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
# get the Elasticsearch URI from an environment variable, if one is set
ES_URI := $(or $(ES_URI),$(ES_URI),http://127.0.0.1:9200/)
# if possible have a virtualenv setup first
build:
npm install
npm run build
pip install -r requirements.txt
run:
ES_URI=$(ES_URI) python src/server.py
run-prod:
PRODUCTION=true ES_URI=$(ES_URI) gunicorn src.server:app -k gevent --pid gunicorn.pid --daemon
restart:
kill -s HUP $(cat gunicorn.pid)
stop:
kill -s TERM $(cat gunicorn.pid)
tests: test-py
npm test
index:
echo $(ES_URI)
cd scripts/elastic_search && ES_URI=$(ES_URI) python index.py
test-py:
nosetests -s