-
Notifications
You must be signed in to change notification settings - Fork 20
/
run-all.sh
executable file
·52 lines (44 loc) · 1.34 KB
/
run-all.sh
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
#!/bin/bash
source PORTS.env
./kill-all.sh
echo "------------------------------------"
pushd ./flight-data/routes
echo "Running routes service"
make build
./routes "$KONG_AIR_ROUTES_PORT" > /tmp/routes.log 2>&1 &
echo $! > ./routes.pid
echo "Routes process ID:" $(cat ./routes.pid)
echo "------------------------------------"
popd
pushd ./flight-data/flights
echo "Running flights service"
make build
./flights "$KONG_AIR_FLIGHTS_PORT" > /tmp/flights.log 2>&1 &
echo $! > ./flights.pid
echo "Flights process ID:" $(cat ./flights.pid)
echo "------------------------------------"
popd
pushd ./sales/customer
echo "Running customer service"
make build
node ./main.js "$KONG_AIR_CUSTOMER_PORT" > /tmp/customer.log 2>&1 &
echo $! > ./customer.pid
echo "Customer process ID:" $(cat ./customer.pid)
echo "------------------------------------"
popd
pushd ./sales/bookings
echo "Running bookings service"
make build
node ./main.js "$KONG_AIR_BOOKINGS_PORT" > /tmp/bookings.log 2>&1 &
echo $! > ./bookings.pid
echo "Bookings process ID:" $(cat ./bookings.pid)
echo "------------------------------------"
popd
pushd ./experience
echo "Running experience service"
make build
node ./index.js "$KONG_AIR_EXPERIENCE_PORT" > /tmp/experience.log 2>&1 &
echo $! > ./experience.pid
echo "Experience process ID:" $(cat ./experience.pid)
echo "------------------------------------"
popd