From 1a823e8733d1c7084456c02a59abb860d7ee8430 Mon Sep 17 00:00:00 2001 From: Dipesh Singh Date: Fri, 9 Feb 2024 17:52:00 +0530 Subject: [PATCH] modifying start-server.js to work on windows (#26892) Signed-off-by: dipeshsingh253 --- js/apps/keycloak-server/package.json | 2 +- js/apps/keycloak-server/scripts/start-server.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/apps/keycloak-server/package.json b/js/apps/keycloak-server/package.json index 019b209b2e..ab3739fc8a 100644 --- a/js/apps/keycloak-server/package.json +++ b/js/apps/keycloak-server/package.json @@ -8,7 +8,7 @@ }, "wireit": { "start": { - "command": "./scripts/start-server.js", + "command": "node ./scripts/start-server.js", "dependencies": [ "../../libs/keycloak-admin-client:build" ] diff --git a/js/apps/keycloak-server/scripts/start-server.js b/js/apps/keycloak-server/scripts/start-server.js index 49752497e3..a09778142e 100755 --- a/js/apps/keycloak-server/scripts/start-server.js +++ b/js/apps/keycloak-server/scripts/start-server.js @@ -40,10 +40,11 @@ async function startServer() { [ "start-dev", "--http-port=8180", - "--features=account3,admin-fine-grained-authz,transient-users", + `--features="account3,admin-fine-grained-authz,transient-users"`, ...keycloakArgs, ], { + shell: true, env: { KEYCLOAK_ADMIN: ADMIN_USERNAME, KEYCLOAK_ADMIN_PASSWORD: ADMIN_PASSWORD,