2015-01-11 20:23:04 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
SETLOCAL
|
|
|
|
|
|
|
|
set SCRIPT_DIR=%~dp0
|
|
|
|
for %%I in ("%SCRIPT_DIR%..") do set DIR=%%~dpfI
|
|
|
|
|
2015-01-16 19:35:46 +01:00
|
|
|
set NODE=%DIR%\node\node.exe
|
2015-07-28 22:49:47 +02:00
|
|
|
for /f "delims=" %%i in ('WHERE node') do set SYS_NODE=%%i
|
2015-01-11 20:23:04 +01:00
|
|
|
|
2015-07-10 07:25:11 +02:00
|
|
|
If Not Exist "%NODE%" (
|
|
|
|
IF Exist "%SYS_NODE%" (
|
|
|
|
set NODE=%SYS_NODE%
|
|
|
|
) else (
|
|
|
|
Echo unable to find usable node.js executable.
|
|
|
|
Exit /B 1
|
|
|
|
)
|
|
|
|
)
|
2015-01-11 20:23:04 +01:00
|
|
|
|
2015-07-10 07:25:11 +02:00
|
|
|
TITLE Kibana Server
|
2015-07-31 01:48:10 +02:00
|
|
|
"%NODE%" "%DIR%\src\cli" %*
|
2015-01-11 20:23:04 +01:00
|
|
|
|
|
|
|
:finally
|
|
|
|
|
2015-07-31 01:48:10 +02:00
|
|
|
ENDLOCAL
|