7373d05c5c8bbafb919ea65032dcf5ead76ae287
[msb/apigateway.git] / msb-core / distributions / standalone / src / assembly / resource / startup.bat
1 @REM
2 @REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
3 @REM
4 @REM Licensed under the Apache License, Version 2.0 (the "License");
5 @REM you may not use this file except in compliance with the License.
6 @REM You may obtain a copy of the License at
7 @REM
8 @REM         http://www.apache.org/licenses/LICENSE-2.0
9 @REM
10 @REM Unless required by applicable law or agreed to in writing, software
11 @REM distributed under the License is distributed on an "AS IS" BASIS,
12 @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 @REM See the License for the specific language governing permissions and
14 @REM limitations under the License.
15 @REM
16 @echo off
17 title msb
18
19 set RUNHOME=%~dp0
20 echo ##RUNHOME %RUNHOME%
21
22 rem dir /B /S run.bat > %~dp0\run.tmp
23 rem For /f %%i in (%~dp0\run.tmp) DO start %%i
24
25 echo ### Starting redis
26 start /D %RUNHOME%redis run.bat
27
28 echo ### Starting apiroute
29 start /D %RUNHOME%apiroute run.bat run
30
31 echo ### Starting openresty
32 start /D %RUNHOME%openresty run.bat  
33
34 echo Startup will be finished in background...
35 echo  + Run "start .\apiroute-works\logs\application.log" to see what's happening
36 echo  + Wait a minute
37 echo  + Open "http://<HOST>" in your browser to access the microservice bus !
38 rem del run.tmp
39 :finalend