script tweak

This commit is contained in:
Brahim Hadriche committed 2025-01-10 17:12:37 -05:00
1 parent 3daa94dee1
commit 26774d5655
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@
"registry:write": "node tools/registry.js --input registry.json",
"registry:read": "node tools/registry.js --output registry.json",
"registry:clear": "node tools/registry.js --clear",
"restart-app": "node tools/restart-app.js --app-id dev"
"restart-app": "node tools/restart-app.js"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.30.1"
+5 -1
View File
@@ -13,7 +13,11 @@ const config = getEnvVars(['ROKU_DEV_TARGET']);
parser.add_argument('--app-id', { help: 'App Id' });
const args = parser.parse_args();
const appId = args.app_id
let appId = args.app_id || "dev";
if (appId === "prod") {
appId = "693751";
}
const url = `http://${config.ROKU_DEV_TARGET}:8060/launch/${appId}?restart=true`;
console.log("Restarting app", appId);