{"action":"created","issue":{"url":"https://api.github.com/repos/mercari/gaurun/issues/14","labels_url":"https://api.github.com/repos/mercari/gaurun/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mercari/gaurun/issues/14/comments","events_url":"https://api.github.com/repos/mercari/gaurun/issues/14/events","html_url":"https://github.com/mercari/gaurun/issues/14","id":123835439,"number":14,"title":"Pass port number as exec argument","user":{"login":"gamella","id":76084,"avatar_url":"https://avatars.githubusercontent.com/u/76084?v=3","gravatar_id":"","url":"https://api.github.com/users/gamella","html_url":"https://github.com/gamella","followers_url":"https://api.github.com/users/gamella/followers","following_url":"https://api.github.com/users/gamella/following{/other_user}","gists_url":"https://api.github.com/users/gamella/gists{/gist_id}","starred_url":"https://api.github.com/users/gamella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamella/subscriptions","organizations_url":"https://api.github.com/users/gamella/orgs","repos_url":"https://api.github.com/users/gamella/repos","events_url":"https://api.github.com/users/gamella/events{/privacy}","received_events_url":"https://api.github.com/users/gamella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-24T21:35:02Z","updated_at":"2015-12-25T08:43:33Z","closed_at":null,"body":"Currently, port is controlled by setting file:\r\n\r\n```\r\n[core]\r\nport = \"4600\"\r\nworkers = 8\r\nqueues = 8192\r\nnotification_max = 100\r\n```\r\n\r\nIn our environment, gaurun is running on docker container. In our docker env, all port used by program is controlled and maitained by upper net container(ref.: http://blog-jp.alpaca.ai/entry/2015/10/28/095009).\r\n\r\nTo prevent the conflict of port, we would like to specify port number by Environment Variable(this is controlled in net container) like that:\r\n\r\n`gauran -p %GAURUN_PORT -c setting.toml`"},"comment":{"url":"https://api.github.com/repos/mercari/gaurun/issues/comments/167210519","html_url":"https://github.com/mercari/gaurun/issues/14#issuecomment-167210519","issue_url":"https://api.github.com/repos/mercari/gaurun/issues/14","id":167210519,"user":{"login":"cubicdaiya","id":56752,"avatar_url":"https://avatars.githubusercontent.com/u/56752?v=3","gravatar_id":"","url":"https://api.github.com/users/cubicdaiya","html_url":"https://github.com/cubicdaiya","followers_url":"https://api.github.com/users/cubicdaiya/followers","following_url":"https://api.github.com/users/cubicdaiya/following{/other_user}","gists_url":"https://api.github.com/users/cubicdaiya/gists{/gist_id}","starred_url":"https://api.github.com/users/cubicdaiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubicdaiya/subscriptions","organizations_url":"https://api.github.com/users/cubicdaiya/orgs","repos_url":"https://api.github.com/users/cubicdaiya/repos","events_url":"https://api.github.com/users/cubicdaiya/events{/privacy}","received_events_url":"https://api.github.com/users/cubicdaiya/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T08:43:33Z","updated_at":"2015-12-25T08:43:33Z","body":"I see. As I'll consider whether introducing the option `-p`, take the approarch below for now. Or patches welcome.\r\n\r\n> Or we can re-generate toml file dynamically. This is an alternative solution."}}