-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
30 lines (22 loc) · 1020 Bytes
/
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
# Microservices Project Make File
#VIRTUALENV = $(shell which virtualenv)
VIRTUALENV = $(shell which pyvenv-3.4)
clean: shutdown
rm -fr microservices.egg-info
#rm -fr venv
venv:
$(VIRTUALENV) venv
install: clean venv
. venv/bin/activate; python setup.py install
. venv/bin/activate; python setup.py develop
launch: venv shutdown
. venv/bin/activate; python3 movie_service/movies/main.py &
. venv/bin/activate; python3 showtime_service/showtimes/main.py &
. venv/bin/activate; python3 booking_service/bookings/main.py &
. venv/bin/activate; python3 user_service/user/main.py &
shutdown:
ps -ef | grep "movie_service/movies/main.py" | grep -v grep | awk '{print $$2}' | xargs -r kill
ps -ef | grep "showtime_service/showtimes/main.py" | grep -v grep | awk '{print $$2}' | xargs -r kill
ps -ef | grep "booking_service/bookings/main.py" | grep -v grep | awk '{print $$2}' | xargs -r kill
ps -ef | grep "user_service/user/main.py" | grep -v grep | awk '{print $$2}' | xargs -r kill
#wow hello again?