{"action":"created","issue":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1318","labels_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1318/labels{/name}","comments_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1318/comments","events_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1318/events","html_url":"https://github.com/phoenixframework/phoenix/issues/1318","id":113885039,"number":1318,"title":"ability to reload phoenix web server ","user":{"login":"0xAX","id":2699235,"avatar_url":"https://avatars.githubusercontent.com/u/2699235?v=3","gravatar_id":"","url":"https://api.github.com/users/0xAX","html_url":"https://github.com/0xAX","followers_url":"https://api.github.com/users/0xAX/followers","following_url":"https://api.github.com/users/0xAX/following{/other_user}","gists_url":"https://api.github.com/users/0xAX/gists{/gist_id}","starred_url":"https://api.github.com/users/0xAX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xAX/subscriptions","organizations_url":"https://api.github.com/users/0xAX/orgs","repos_url":"https://api.github.com/users/0xAX/repos","events_url":"https://api.github.com/users/0xAX/events{/privacy}","received_events_url":"https://api.github.com/users/0xAX/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-28T18:03:43Z","updated_at":"2015-10-28T19:09:39Z","closed_at":"2015-10-28T19:09:39Z","body":"Hello,\r\n\r\nI'm searching for ability to reload phoenix release without stopping. I'm integrating [exrm_reload] (https://github.com/xerions/exrm_reload) for this point.\r\n\r\nWhat I need to restart cowboy web server? I have config something like this:\r\n\r\n```elixir\r\n{http,[{ip,{0,0,0,0}},{port,<<\"4000\">>}]},\r\n```\r\n\r\nNow I can change port in the release config and catch it in the code. How can i restart web server now on the new port? I've tried to call the:\r\n\r\n```elixir\r\nMyApp.Endpoint.config_change(changed, removed)\r\n```\r\n\r\nwhich just calls the `Phoenix.Endpoint.config_change/2` as I understand correctly. But after the call of the `MyApp.Endpoint.config_change`/2\r\nI see that cowboy isn't restarted and I can access my web application only via the old port.\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/comments/151959886","html_url":"https://github.com/phoenixframework/phoenix/issues/1318#issuecomment-151959886","issue_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1318","id":151959886,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T19:09:39Z","updated_at":"2015-10-28T19:09:39Z","body":"Can you please use the mailing list for questions? A lot more folks will be able to help there."}}