From 00541dcc813b1b46d9b29daf1041d15871dd9a7e Mon Sep 17 00:00:00 2001 From: wartana Date: Tue, 3 Feb 2026 09:49:21 +0800 Subject: [PATCH] refactor: Remove hardcoded Home Assistant URL and token environment variables and add a directory change before executing the node application. --- run_server.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run_server.sh b/run_server.sh index 3c7d985..17dfe2d 100755 --- a/run_server.sh +++ b/run_server.sh @@ -1,4 +1,3 @@ #!/bin/bash -export HA_URL="http://10.8.0.17:8123" -export HA_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3MjkxZDFhNmQ1ZDQ0MGI1YmQ5ODgwYTZlZTZjYmIxYiIsImlhdCI6MTc2OTkxNzcyNSwiZXhwIjoyMDg1Mjc3NzI1fQ.Bpqs8Tr7Nxle377HbIP5u8fQZnSL5rQjYxBYaeEJMuw" -exec /usr/bin/node /home/wartana/myApp/home-assistant-mcp/dist/index.js +cd /home/wartana/myApp/home-assistant-mcp +exec /usr/bin/node dist/index.js