{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3869","repository_url":"https://api.github.com/repos/Starcounter/Starcounter","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3869/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3869/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3869/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3869","id":181392388,"number":3869,"title":"Prototype self-hosted app bootstraping in 2.x","user":{"login":"per-samuelsson","id":2902045,"avatar_url":"https://avatars.githubusercontent.com/u/2902045?v=3","gravatar_id":"","url":"https://api.github.com/users/per-samuelsson","html_url":"https://github.com/per-samuelsson","followers_url":"https://api.github.com/users/per-samuelsson/followers","following_url":"https://api.github.com/users/per-samuelsson/following{/other_user}","gists_url":"https://api.github.com/users/per-samuelsson/gists{/gist_id}","starred_url":"https://api.github.com/users/per-samuelsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per-samuelsson/subscriptions","organizations_url":"https://api.github.com/users/per-samuelsson/orgs","repos_url":"https://api.github.com/users/per-samuelsson/repos","events_url":"https://api.github.com/users/per-samuelsson/events{/privacy}","received_events_url":"https://api.github.com/users/per-samuelsson/received_events","type":"User","site_admin":false},"labels":[{"id":87189214,"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/Code%20host","name":"Code host","color":"009800","default":false},{"id":4413437,"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"per-samuelsson","id":2902045,"avatar_url":"https://avatars.githubusercontent.com/u/2902045?v=3","gravatar_id":"","url":"https://api.github.com/users/per-samuelsson","html_url":"https://github.com/per-samuelsson","followers_url":"https://api.github.com/users/per-samuelsson/followers","following_url":"https://api.github.com/users/per-samuelsson/following{/other_user}","gists_url":"https://api.github.com/users/per-samuelsson/gists{/gist_id}","starred_url":"https://api.github.com/users/per-samuelsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per-samuelsson/subscriptions","organizations_url":"https://api.github.com/users/per-samuelsson/orgs","repos_url":"https://api.github.com/users/per-samuelsson/repos","events_url":"https://api.github.com/users/per-samuelsson/events{/privacy}","received_events_url":"https://api.github.com/users/per-samuelsson/received_events","type":"User","site_admin":false},"assignees":[{"login":"per-samuelsson","id":2902045,"avatar_url":"https://avatars.githubusercontent.com/u/2902045?v=3","gravatar_id":"","url":"https://api.github.com/users/per-samuelsson","html_url":"https://github.com/per-samuelsson","followers_url":"https://api.github.com/users/per-samuelsson/followers","following_url":"https://api.github.com/users/per-samuelsson/following{/other_user}","gists_url":"https://api.github.com/users/per-samuelsson/gists{/gist_id}","starred_url":"https://api.github.com/users/per-samuelsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per-samuelsson/subscriptions","organizations_url":"https://api.github.com/users/per-samuelsson/orgs","repos_url":"https://api.github.com/users/per-samuelsson/repos","events_url":"https://api.github.com/users/per-samuelsson/events{/privacy}","received_events_url":"https://api.github.com/users/per-samuelsson/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Starcounter/Starcounter/milestones/59","html_url":"https://github.com/Starcounter/Starcounter/milestones/2.3/pnext","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/milestones/59/labels","id":1449205,"number":59,"title":"2.3/pnext","description":"","creator":{"login":"dan31","id":7162535,"avatar_url":"https://avatars.githubusercontent.com/u/7162535?v=3","gravatar_id":"","url":"https://api.github.com/users/dan31","html_url":"https://github.com/dan31","followers_url":"https://api.github.com/users/dan31/followers","following_url":"https://api.github.com/users/dan31/following{/other_user}","gists_url":"https://api.github.com/users/dan31/gists{/gist_id}","starred_url":"https://api.github.com/users/dan31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan31/subscriptions","organizations_url":"https://api.github.com/users/dan31/orgs","repos_url":"https://api.github.com/users/dan31/repos","events_url":"https://api.github.com/users/dan31/events{/privacy}","received_events_url":"https://api.github.com/users/dan31/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":81,"state":"open","created_at":"2015-12-08T04:55:49Z","updated_at":"2016-11-16T12:22:15Z","due_on":"2016-06-05T22:00:00Z","closed_at":null},"comments":22,"created_at":"2016-10-06T11:41:27Z","updated_at":"2016-11-16T15:59:04Z","closed_at":null,"body":"Found myself researching/prototyping this to get further on https://github.com/Starcounter/Starcounter.Core/issues/120. \r\n\r\nWe've taken a principal decision to try realizing this in a future 2.x-based version, initially with a limited scope though (basically, one self-hosted app / database), possibly extending that over time.\r\n\r\nThere are oldish but still relevant background discussions in the .Core tracker in https://github.com/Starcounter/Starcounter.Core/issues/41 and https://github.com/Starcounter/Starcounter.Core/issues/59, and some documentation at [Starcounter.Core wiki, Self-hosted apps](https://github.com/Starcounter/Starcounter.Core/wiki/Apps-on-Starcounter.Core#self-hosted-apps). Also relevant: https://github.com/Starcounter/CompanyTrack/issues/232.\r\n\r\n### Technical debt\r\nPlan to turn these into issues and work them through once this prototype is pushed, so that we can start collaborative reviewing earlier.\r\n\r\n- [ ] Bug with self-hosting + gateway: https://github.com/Starcounter/Starcounter/issues/3869#issuecomment-257071378. `HostConfigurationFromServerConfiguration.CreateConfiguration()` => `config.NoNetworkGateway = true` workaround (commit `4e9c2cc86bdcaf39eebb9ab4824e7f176c8f7339`).\r\n- [ ] `RuntimeHost.ConfigureAppHostingContext()`, all those app-specific parameters.\r\n- [ ] `DatabaseEngine.QueueCodeHostRestart` - we don't want to restart failing self-hosted applications.\r\n- [x] Weaver `FileManager.AddEditionLibraries` when executed from compile-time weaving MsBuild task - an error raised there is not properly propagated to `IWeaverHost.WriteError` but end `IWeaverHost.OnWeaverDone(false)`, and there are probably similar spots. Improve on hosted weaver error handling.\r\n- [ ] Finalize #3874. (Code is already moved, `Starcounter.Hosting` is empty. Drop it, and rename `Starcounter.Bootstrap` = >`Starcounter.Hosting`)\r\n- [x] Doing Clean on a self-hosted application project previously weaved does not properly remove those \"special assemblies\" (temporary hack: `769114012ab357ecba8d7e1d17e3fe90d560856f`)\r\n- [ ] Attach debugger when bootstrapping self-hosted application (temporary disabled in `1668656fda75a392c057d7c5e29859583f4e1be8`) \r\n- [ ] Self-hosting host look for schemas/special assemblies in hard-coded path (see `0857c1d61f29576528fd62e0cdebdc5e56765acc`). Should be done in some other way, and respect that cache path can be customized in MsBuild"},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/260984440","html_url":"https://github.com/Starcounter/Starcounter/issues/3869#issuecomment-260984440","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3869","id":260984440,"user":{"login":"per-samuelsson","id":2902045,"avatar_url":"https://avatars.githubusercontent.com/u/2902045?v=3","gravatar_id":"","url":"https://api.github.com/users/per-samuelsson","html_url":"https://github.com/per-samuelsson","followers_url":"https://api.github.com/users/per-samuelsson/followers","following_url":"https://api.github.com/users/per-samuelsson/following{/other_user}","gists_url":"https://api.github.com/users/per-samuelsson/gists{/gist_id}","starred_url":"https://api.github.com/users/per-samuelsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per-samuelsson/subscriptions","organizations_url":"https://api.github.com/users/per-samuelsson/orgs","repos_url":"https://api.github.com/users/per-samuelsson/repos","events_url":"https://api.github.com/users/per-samuelsson/events{/privacy}","received_events_url":"https://api.github.com/users/per-samuelsson/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T15:59:04Z","updated_at":"2016-11-16T15:59:04Z","body":"> After researching that track a bit, that seem to be the suggested way to do it. I'll try to implement that ASAP. If it works, it's a relief since it was the main thing I was worried about and had no real clue to get further on.\r\n\r\nWorked like a charm. Now it's possible to debug self-hosted apps in the same straightforward manner as you would do any standard console application. Thanks for the hint, @linkdata. 👍 "}}
{"actor":{"display_login":"per-samuelsson"}}