* chore(NA): update node options initilization on our scripts * chore(NA): re-export NODE_OPTIONS instead of re-setting on vars * chore(NA): missing doc comment
22 lines
363 B
Batchfile
Executable file
22 lines
363 B
Batchfile
Executable file
@echo off
|
|
|
|
SETLOCAL
|
|
|
|
set SCRIPT_DIR=%~dp0
|
|
for %%I in ("%SCRIPT_DIR%..") do set DIR=%%~dpfI
|
|
|
|
set NODE=%DIR%\node\node.exe
|
|
set NODE_ENV="production"
|
|
|
|
If Not Exist "%NODE%" (
|
|
Echo unable to find usable node.js executable.
|
|
Exit /B 1
|
|
)
|
|
|
|
TITLE Kibana Server
|
|
|
|
set "NODE_OPTIONS=--no-warnings %NODE_OPTIONS%" && "%NODE%" "%DIR%\src\cli_plugin" %*
|
|
|
|
:finally
|
|
|
|
ENDLOCAL
|