-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Expand file tree
/
Copy pathkibana.bat
More file actions
executable file
·46 lines (36 loc) · 1.05 KB
/
kibana.bat
File metadata and controls
executable file
·46 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
set SCRIPT_DIR=%~dp0
for %%I in ("%SCRIPT_DIR%..") do set DIR=%%~dpfI
set NODE=%DIR%\node\default\node.exe
set NODE_ENV=production
{{#rspack}}
set KBN_USE_RSPACK=true
{{/rspack}}
If Not Exist "%NODE%" (
Echo unable to find usable node.js executable.
Exit /B 1
)
set CONFIG_DIR=%KBN_PATH_CONF%
If ["%KBN_PATH_CONF%"] == [""] (
set "CONFIG_DIR=%DIR%\config"
)
IF EXIST "%CONFIG_DIR%\node.options" (
for /F "usebackq eol=# tokens=*" %%i in ("%CONFIG_DIR%\node.options") do (
If [!NODE_OPTIONS!] == [] (
set "NODE_OPTIONS=%%i"
) Else (
set "NODE_OPTIONS=!NODE_OPTIONS! %%i"
)
)
)
:: Include pre-defined node option
set "NODE_OPTIONS=--no-warnings --max-http-header-size=65536 %NODE_OPTIONS%"
IF "%KBN_DISALLOW_CODE_GEN_FROM_STRINGS%"=="true" (
set "NODE_OPTIONS=--disallow-code-generation-from-strings %NODE_OPTIONS%"
)
:: This should run independently as the last instruction
:: as we need NODE_OPTIONS previously set to expand
"%NODE%" "%DIR%\src\cli\kibana\dist" %*
:finally
ENDLOCAL