script tweak
This commit is contained in:
1 parent
3daa94dee1
commit
26774d5655
2 files changed
+6
-2
No files matched your search
+1
-1
@@ -66,7 +66,7 @@
|
|||||||
"registry:write": "node tools/registry.js --input registry.json",
|
"registry:write": "node tools/registry.js --input registry.json",
|
||||||
"registry:read": "node tools/registry.js --output registry.json",
|
"registry:read": "node tools/registry.js --output registry.json",
|
||||||
"registry:clear": "node tools/registry.js --clear",
|
"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": {
|
"optionalDependencies": {
|
||||||
"@rollup/rollup-linux-x64-gnu": "^4.30.1"
|
"@rollup/rollup-linux-x64-gnu": "^4.30.1"
|
||||||
|
|||||||
@@ -13,7 +13,11 @@ const config = getEnvVars(['ROKU_DEV_TARGET']);
|
|||||||
parser.add_argument('--app-id', { help: 'App Id' });
|
parser.add_argument('--app-id', { help: 'App Id' });
|
||||||
|
|
||||||
const args = parser.parse_args();
|
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`;
|
const url = `http://${config.ROKU_DEV_TARGET}:8060/launch/${appId}?restart=true`;
|
||||||
console.log("Restarting app", appId);
|
console.log("Restarting app", appId);
|
||||||
|
|||||||
Reference in new issue
Block a user