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-12-09 20:02:38 +01:00
|
|
|
|
2017-05-26 17:27:16 +02:00
|
|
|
set NODE_ENV="production"
|
|
|
|
|
2015-12-09 20:02:38 +01:00
|
|
|
WHERE /Q node
|
|
|
|
IF %ERRORLEVEL% EQU 0 (
|
|
|
|
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%" (
|
2016-01-06 21:40:26 +01:00
|
|
|
set "NODE=%SYS_NODE%"
|
2015-07-10 07:25:11 +02:00
|
|
|
) 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
|
2016-10-19 12:41:45 +02:00
|
|
|
"%NODE%" %NODE_OPTIONS% --no-warnings "%DIR%\src\cli" %*
|
2015-01-11 20:23:04 +01:00
|
|
|
|
|
|
|
:finally
|
|
|
|
|
2015-07-31 01:48:10 +02:00
|
|
|
ENDLOCAL
|