forked from mwinteringham/restful-booker-platform
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun_locally.cmd
73 lines (58 loc) · 2.6 KB
/
run_locally.cmd
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
@echo off
set DO_E2E=%1
echo:
echo ####### RESTFUL-BOOKER-PLATFORM #######
echo #### ####
echo #### STARTING APPLICATION... ####
echo #### ####
echo #######################################
echo:
for /f "delims=" %%a in ('dir auth\target\*.jar /B /O:D') do set "auth_jar=%%a"
START /B java -jar -Dspring.profiles.active=dev auth/target/%auth_jar% > auth.log
for /f "delims=" %%a in ('dir booking\target\*.jar /B /O:D') do set "booking_jar=%%a"
START /B java -jar -Dspring.profiles.active=dev booking/target/%booking_jar% > booking.log
for /f "delims=" %%a in ('dir room\target\*.jar /B /O:D') do set "room_jar=%%a"
START /B java -jar -Dspring.profiles.active=dev room/target/%room_jar% > room.log
for /f "delims=" %%a in ('dir report\target\*.jar /B /O:D') do set "report_jar=%%a"
START /B java -jar -Dspring.profiles.active=dev report/target/%report_jar% > report.log
for /f "delims=" %%a in ('dir branding\target\*.jar /B /O:D') do set "branding_jar=%%a"
START /B java -jar -Dspring.profiles.active=dev branding/target/%branding_jar% > branding.log
for /f "delims=" %%a in ('dir message\target\*.jar /B /O:D') do set "message_jar=%%a"
START /B java -jar -Dspring.profiles.active=dev message/target/%message_jar% > message.log &
for /f "delims=" %%a in ('dir assets\api\target\*.jar /B /O:D') do set "assets_jar=%%a"
START /B java -jar -Dspring.profiles.active=dev assets/api/target/%assets_jar% > ui.log
for /f "delims=" %%a in ('dir proxy\target\*.jar /B /O:D') do set "proxy_jar=%%a"
START /B java -jar proxy/target/%proxy_jar% > proxy.log
call node .utilities/monitor/local_monitor.js
echo:
echo \n
echo ####### RESTFUL-BOOKER-PLATFORM #######
echo #### ####
echo #### RUNNING E2E CHECKS ####
echo #### ####
echo #######################################
if "%DO_E2E%" == "true" (
cd %cmdFileDirectory%end-to-end-tests
call mvn clean test
cd ..
) else (
echo:
echo: SKIPPING E2E TESTS
echo: Add true argument to run E2E tests
)
echo:
echo ####### RESTFUL-BOOKER-PLATFORM #######
echo #### ####
echo #### APPLICATION READY ####
echo #### ####
echo #### Available at: ####
echo #### http://localhost:8080 ####
echo #### ####
echo #### PRESS ENTER TO QUIT ####
echo #### ####
echo #######################################
echo:
set /p=
echo Exiting Restful-booker-platform....
taskkill /f /im java.exe
taskkill /f /im node.exe