{"action":"created","issue":{"url":"https://api.github.com/repos/convox/rack/issues/458","repository_url":"https://api.github.com/repos/convox/rack","labels_url":"https://api.github.com/repos/convox/rack/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/convox/rack/issues/458/comments","events_url":"https://api.github.com/repos/convox/rack/issues/458/events","html_url":"https://github.com/convox/rack/issues/458","id":141350559,"number":458,"title":"Deployment targets","user":{"login":"ddollar","id":3308,"avatar_url":"https://avatars.githubusercontent.com/u/3308?v=3","gravatar_id":"","url":"https://api.github.com/users/ddollar","html_url":"https://github.com/ddollar","followers_url":"https://api.github.com/users/ddollar/followers","following_url":"https://api.github.com/users/ddollar/following{/other_user}","gists_url":"https://api.github.com/users/ddollar/gists{/gist_id}","starred_url":"https://api.github.com/users/ddollar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddollar/subscriptions","organizations_url":"https://api.github.com/users/ddollar/orgs","repos_url":"https://api.github.com/users/ddollar/repos","events_url":"https://api.github.com/users/ddollar/events{/privacy}","received_events_url":"https://api.github.com/users/ddollar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/convox/rack/milestones/9","html_url":"https://github.com/convox/rack/milestones/Deploy%20/%20Release","labels_url":"https://api.github.com/repos/convox/rack/milestones/9/labels","id":1670411,"number":9,"title":"Deploy / Release","description":"","creator":{"login":"nzoschke","id":147410,"avatar_url":"https://avatars.githubusercontent.com/u/147410?v=3","gravatar_id":"","url":"https://api.github.com/users/nzoschke","html_url":"https://github.com/nzoschke","followers_url":"https://api.github.com/users/nzoschke/followers","following_url":"https://api.github.com/users/nzoschke/following{/other_user}","gists_url":"https://api.github.com/users/nzoschke/gists{/gist_id}","starred_url":"https://api.github.com/users/nzoschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzoschke/subscriptions","organizations_url":"https://api.github.com/users/nzoschke/orgs","repos_url":"https://api.github.com/users/nzoschke/repos","events_url":"https://api.github.com/users/nzoschke/events{/privacy}","received_events_url":"https://api.github.com/users/nzoschke/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2016-03-28T19:55:34Z","updated_at":"2016-04-09T20:20:01Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-03-16T17:47:16Z","updated_at":"2016-04-15T13:25:10Z","closed_at":null,"body":"I propose we make app selection a bit more explicit:\r\n\r\n```\r\n$ convox deploy\r\nERROR: No default target.\r\nPlease add one with `convox targets add default` or specify --app.\r\n\r\n$ convox targets add staging myapp-staging\r\nAdding staging target... OK\r\n\r\n$ convox targets add default myapp-staging\r\nAdding default target... OK\r\n\r\n$ convox deploy\r\nDeploying to myapp-staging...\r\n\r\n$ convox deploy staging\r\nDeploying to myapp-staging...\r\n\r\n$ convox deploy foo\r\nERROR: No target named foo\r\n```\r\n\r\nOnce we get the new console up and running:\r\n\r\n```\r\n$ convox targets add default myapp-staging --rack mycompany/staging\r\n```\r\n\r\nCreating an app should set the default target if it doesn't exist or let the user specify:\r\n\r\n```\r\n$ convox apps create myapp-testing --target testing\r\n```\r\n\r\nThe `convox targets` command should manage a `.convox/targets` file in the app like this:\r\n\r\n```\r\n{\r\n  \"default\": {\r\n    \"app\": \"myapp-staging\",\r\n    \"rack\": \"mycompany/staging\"\r\n  },\r\n  \"staging\": {\r\n    \"app\": \"myapp-staging\"\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/convox/rack/issues/comments/210463178","html_url":"https://github.com/convox/rack/issues/458#issuecomment-210463178","issue_url":"https://api.github.com/repos/convox/rack/issues/458","id":210463178,"user":{"login":"ddollar","id":3308,"avatar_url":"https://avatars.githubusercontent.com/u/3308?v=3","gravatar_id":"","url":"https://api.github.com/users/ddollar","html_url":"https://github.com/ddollar","followers_url":"https://api.github.com/users/ddollar/followers","following_url":"https://api.github.com/users/ddollar/following{/other_user}","gists_url":"https://api.github.com/users/ddollar/gists{/gist_id}","starred_url":"https://api.github.com/users/ddollar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddollar/subscriptions","organizations_url":"https://api.github.com/users/ddollar/orgs","repos_url":"https://api.github.com/users/ddollar/repos","events_url":"https://api.github.com/users/ddollar/events{/privacy}","received_events_url":"https://api.github.com/users/ddollar/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T13:25:10Z","updated_at":"2016-04-15T13:25:10Z","body":"Also add some easy way to get current target info for adding to a shell prompt."}}