{ "id": "166975", "key": "TIMOB-24577", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2019-08-05T18:19:03.000+0000", "created": "2017-04-06T11:22:21.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "appc", "build", "cli", "deploy", "deployment", "liveview", "run" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-08-05T18:19:03.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "If I use {{\\-\\-liveview}} for building using the CLI, {{\\-\\-deploy-type}} gets ignored and the build will always be using the {{development}} “deploy-type”, no matter what.", "attachment": [], "flagged": false, "summary": "CLI - Building with deploy type flag is ignored when using Liveview", "creator": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "macOS Sierra\r\nTi SDK 6.0.3.GA\r\nappc v6.1.0", "comment": { "comments": [ { "id": "416919", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Which platform is this happening for you? ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-04-06T14:47:40.000+0000", "updated": "2017-04-06T14:47:40.000+0000" }, { "id": "416921", "author": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "body": "macOS Sierra", "updateAuthor": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-06T14:57:38.000+0000", "updated": "2017-04-06T14:57:38.000+0000" }, { "id": "417069", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please try with the below command\r\n\r\n{code}\r\nappc run -p ios -D test -T device --liveview\r\n{code}\r\n\r\nShould run in device. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-04-08T06:30:45.000+0000", "updated": "2017-04-08T06:30:45.000+0000" }, { "id": "417088", "author": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pretty interesting, so this is the one which didn't work:\r\n{{appc run --developer-name \"XXXX\" --pp-uuid XXXX --device-id XXXX --deploy-type test --liveview}}\r\n\r\nBut this one works:\r\n{{appc run --developer-name \"XXXX\" --pp-uuid XXXX --device-id XXXX -p ios -T device -D test --liveview}}\r\nWhich I thought was the same as:\r\n{{appc run --developer-name \"XXXX\" --pp-uuid XXXX --device-id XXXX --platform ios --target device --deploy-type test --liveview}}", "updateAuthor": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-10T08:01:17.000+0000", "updated": "2017-04-10T08:01:17.000+0000" }, { "id": "417094", "author": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ok so now no matter what, `development` env is always used after the 2nd liveview refresh.", "updateAuthor": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-10T09:17:05.000+0000", "updated": "2017-04-10T09:17:05.000+0000" }, { "id": "417185", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, So this works for you?\r\n{code}\r\nappc run --developer-name \"XXXX\" --pp-uuid XXXX --device-id XXXX -p ios -T device -D test --liveview\r\n{code}\r\n\r\nFor \"--deploy-type\" use \"-D test\" for device build. Thanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-04-11T13:25:25.000+0000", "updated": "2017-04-11T13:25:25.000+0000" }, { "id": "417254", "author": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes but only for the first build. As soon as I change something in the code and liveview refresh the build the environment is back from {{test}} to {{development}}.\r\n\r\nIsn't {{\\-D}} and alias for {{\\-\\-deploy-type}}?", "updateAuthor": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-12T09:25:17.000+0000", "updated": "2017-04-12T09:25:33.000+0000" }, { "id": "417314", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Yes, Seems a valid bug. Moving to engineering. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-04-12T18:36:08.000+0000", "updated": "2017-04-12T18:36:08.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }