From 3bab2d59402b4fa95fdd34072ec46afc0cf2b9a8 Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Thu, 1 Jul 2021 11:41:42 +0300 Subject: [PATCH] feat: Inherit all env variables to Cube Store (auto provisioning) --- rust/cubestore/js-wrapper/src/process.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/cubestore/js-wrapper/src/process.ts b/rust/cubestore/js-wrapper/src/process.ts index 816dac61a1177..ae549b38fabbd 100644 --- a/rust/cubestore/js-wrapper/src/process.ts +++ b/rust/cubestore/js-wrapper/src/process.ts @@ -16,6 +16,8 @@ interface StartProcessOptions extends CubeStoreHandlerOptions { async function startProcess(pathToExecutable: string, config: Readonly) { const env: Record = { + // inherit all env variables from node + ...process.env, CUBESTORE_PORT: '13306', // TODO MySQL port. Remove it when it becomes optional. CUBESTORE_SELECT_WORKERS: '0', };