{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/791","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/791/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/791/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/791/events","html_url":"https://github.com/dart-lang/pub/issues/791","id":85644744,"number":791,"title":"prepare a Dart app for server-side deployment","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Fixed","name":"Fixed","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Pub-Build","name":"Pub-Build","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-05T22:14:50Z","updated_at":"2015-06-05T22:14:50Z","closed_at":null,"body":"<a href=\"https://github.com/sethladd\"><img src=\"https://avatars.githubusercontent.com/u/5479?v=3\" align=\"left\" width=\"96\" height=\"96\"hspace=\"10\"></img></a> **Issue by [sethladd](https://github.com/sethladd)**\n_Originally opened as dart-lang/sdk#15731_\n\n----\n\nRight now, `pub build` is optimized for web apps. Dart server-side is growing up, and we need a way to build a Dart app for server deployment.\n\nWe think this means create a snapshot of the app.\n\nWe think this also means we need `pub build` to support a package with both web/ entry points and bin/ entry points. Often, the server will live in bin/ and it will serve up resources from web/"},"comment":{"url":"https://api.github.com/repos/dart-lang/pub/issues/comments/109457838","html_url":"https://github.com/dart-lang/pub/issues/791#issuecomment-109457838","issue_url":"https://api.github.com/repos/dart-lang/pub/issues/791","id":109457838,"user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T22:14:50Z","updated_at":"2015-06-05T22:14:50Z","body":"<a href=\"https://github.com/sethladd\"><img src=\"https://avatars.githubusercontent.com/u/5479?v=3\" align=\"left\" width=\"48\" height=\"48\"hspace=\"10\"></img></a> **Comment by [sethladd](https://github.com/sethladd)**\n\n----\n\nToday, to run a server app \"in the cloud\", you need to get the code up to the hosting provider and then run pub install (to set up all the symlinks). This has a couple of issues:\n\npub install can be slow\nno guarantee that the exact same bits you tested in QA are what you are running in prod (assumption: moving a snapshot around is easier to control than source + various pub installs)\ngenerally adds complexity to the deployment process\nthe app starts faster from a snapshot, thus decreasing time to spawn up new instances"}}