kibana/bin/kibana.bat
Tiago Costa f9fbc5d274
Update node options Initialization on our scripts (#40302)
* 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
2019-08-15 16:09:22 +01:00

22 lines
365 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
)
set "NODE_OPTIONS=--no-warnings --max-http-header-size=65536 %NODE_OPTIONS%" && "%NODE%" "%DIR%\src\cli" %*
:finally
ENDLOCAL