{"action":"created","issue":{"url":"https://api.github.com/repos/code-mancers/invoker/issues/123","labels_url":"https://api.github.com/repos/code-mancers/invoker/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/code-mancers/invoker/issues/123/comments","events_url":"https://api.github.com/repos/code-mancers/invoker/issues/123/events","html_url":"https://github.com/code-mancers/invoker/pull/123","id":59224753,"number":123,"title":"Support subdomain and paths in process labels","user":{"login":"dlee","id":7035,"avatar_url":"https://avatars.githubusercontent.com/u/7035?v=3","gravatar_id":"","url":"https://api.github.com/users/dlee","html_url":"https://github.com/dlee","followers_url":"https://api.github.com/users/dlee/followers","following_url":"https://api.github.com/users/dlee/following{/other_user}","gists_url":"https://api.github.com/users/dlee/gists{/gist_id}","starred_url":"https://api.github.com/users/dlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlee/subscriptions","organizations_url":"https://api.github.com/users/dlee/orgs","repos_url":"https://api.github.com/users/dlee/repos","events_url":"https://api.github.com/users/dlee/events{/privacy}","received_events_url":"https://api.github.com/users/dlee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-27T11:31:55Z","updated_at":"2015-03-19T22:50:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/code-mancers/invoker/pulls/123","html_url":"https://github.com/code-mancers/invoker/pull/123","diff_url":"https://github.com/code-mancers/invoker/pull/123.diff","patch_url":"https://github.com/code-mancers/invoker/pull/123.patch"},"body":"Support targeting specific subdomain and paths:\r\n\r\n```ini\r\n[www.myapp]\r\ndirectory = /Users/bob/rails/\r\ncommand = rails s -p $PORT\r\n\r\n[www.myapp/search]\r\ndirectory = /Users/bob/search/\r\ncommand = searchd -p $PORT\r\n\r\n[www.myapp/chat]\r\ndirectory = /Users/bob/chat/\r\ncommand = chatd -p $PORT\r\n\r\n[myapp/api]\r\ndirectory = /Users/bob/api/\r\ncommand = rails s -p $PORT\r\n```\r\n\r\nThe routing first resolves the subdomain (longest matching suffix) and then resolves the path (longest matching prefix). For example:\r\n```\r\nblah.myapp.dev/stuff      => 404\r\nblah.myapp.dev/api/stuff  => [myapp/api]\r\nwww.myapp.dev/api/stuff   => [www.myapp]\r\nwww.myapp.dev/chat/stuff  => [www.myapp/chat]\r\nwww.myapp.dev/chat2/stuff => [www.myapp]\r\n```"},"comment":{"url":"https://api.github.com/repos/code-mancers/invoker/issues/comments/83789960","html_url":"https://github.com/code-mancers/invoker/pull/123#issuecomment-83789960","issue_url":"https://api.github.com/repos/code-mancers/invoker/issues/123","id":83789960,"user":{"login":"dlee","id":7035,"avatar_url":"https://avatars.githubusercontent.com/u/7035?v=3","gravatar_id":"","url":"https://api.github.com/users/dlee","html_url":"https://github.com/dlee","followers_url":"https://api.github.com/users/dlee/followers","following_url":"https://api.github.com/users/dlee/following{/other_user}","gists_url":"https://api.github.com/users/dlee/gists{/gist_id}","starred_url":"https://api.github.com/users/dlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlee/subscriptions","organizations_url":"https://api.github.com/users/dlee/orgs","repos_url":"https://api.github.com/users/dlee/repos","events_url":"https://api.github.com/users/dlee/events{/privacy}","received_events_url":"https://api.github.com/users/dlee/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T22:50:55Z","updated_at":"2015-03-19T22:50:55Z","body":"Hi, were you able to take a look at this?"}}