forked from heynemann/r3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (15 loc) · 774 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# %%%%%%%%%%%%%% SERVICE %%%%%%%%%%%%%%
run:
@PYTHONPATH=$$PYTHONPATH:.:./test python r3/app/server.py --redis-port=7778 --redis-pass=r3 --config-file="./test/app_config.py" --debug
# %%%%%%%%%%%%%% WORKER %%%%%%%%%%%%%%
worker:
@PYTHONPATH=$$PYTHONPATH:. python r3/worker/mapper.py --mapper-key="${KEY}" --mapper-class="test.count_words_mapper.CountWordsMapper" --redis-port=7778 --redis-pass=r3
# %%%%%%%%%%%%%% WEB %%%%%%%%%%%%%%
web:
@PYTHONPATH=$$PYTHONPATH:.:./test python r3/web/server.py --redis-port=7778 --redis-pass=r3 --config-file=./r3/web/config.py --debug
# %%%%%%%%%%%%%% REDIS %%%%%%%%%%%%%%
kill_redis:
@ps aux | awk '(/redis-server/ && $$0 !~ /awk/){ system("kill -9 "$$2) }'
redis: kill_redis
@mkdir -p /tmp/r3/db
@redis-server redis.conf &