refactor: Remove hardcoded Home Assistant URL and token environment variables and add a directory change before executing the node application.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export HA_URL="http://10.8.0.17:8123"
|
cd /home/wartana/myApp/home-assistant-mcp
|
||||||
export HA_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3MjkxZDFhNmQ1ZDQ0MGI1YmQ5ODgwYTZlZTZjYmIxYiIsImlhdCI6MTc2OTkxNzcyNSwiZXhwIjoyMDg1Mjc3NzI1fQ.Bpqs8Tr7Nxle377HbIP5u8fQZnSL5rQjYxBYaeEJMuw"
|
exec /usr/bin/node dist/index.js
|
||||||
exec /usr/bin/node /home/wartana/myApp/home-assistant-mcp/dist/index.js
|
|
||||||
|
|||||||
Reference in New Issue
Block a user