{"action":"created","issue":{"url":"https://api.github.com/repos/bitwalker/exrm/issues/335","repository_url":"https://api.github.com/repos/bitwalker/exrm","labels_url":"https://api.github.com/repos/bitwalker/exrm/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/bitwalker/exrm/issues/335/comments","events_url":"https://api.github.com/repos/bitwalker/exrm/issues/335/events","html_url":"https://github.com/bitwalker/exrm/issues/335","id":147868805,"number":335,"title":"running_config sys.config incorrect","user":{"login":"pdilyard","id":1459456,"avatar_url":"https://avatars.githubusercontent.com/u/1459456?v=3","gravatar_id":"","url":"https://api.github.com/users/pdilyard","html_url":"https://github.com/pdilyard","followers_url":"https://api.github.com/users/pdilyard/followers","following_url":"https://api.github.com/users/pdilyard/following{/other_user}","gists_url":"https://api.github.com/users/pdilyard/gists{/gist_id}","starred_url":"https://api.github.com/users/pdilyard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdilyard/subscriptions","organizations_url":"https://api.github.com/users/pdilyard/orgs","repos_url":"https://api.github.com/users/pdilyard/repos","events_url":"https://api.github.com/users/pdilyard/events{/privacy}","received_events_url":"https://api.github.com/users/pdilyard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-12T20:49:09Z","updated_at":"2016-04-22T13:09:07Z","closed_at":null,"body":"Upon building a clean release on my local machine, I have the following files:\r\n\r\n```elixir\r\n# myapp.schema.exs\r\n[\r\n  mappings: [\r\n    ...\r\n    \"myapp.http.port\": [\r\n      doc: \"The port on the local machine that the app will mount to\",\r\n      to: \"myapp.Elixir.MyApp.Endpoint.http.port\",\r\n      datatype: :integer,\r\n      default: 4000\r\n    ],\r\n    \"myapp.url.host\": [\r\n      doc: \"A hostname at which this application can be reached\",\r\n      to: \"myapp.Elixir.MyApp.Endpoint.url.host\",\r\n      datatype: :binary,\r\n      default: \"example.com\"\r\n    ],\r\n    \"myapp.url.port\": [\r\n      doc: \"The port that pairs with the hostname\",\r\n      to: \"myapp.Elixir.MyApp.Endpoint.url.port\",\r\n      datatype: :integer,\r\n      default: 80\r\n    ],\r\n    \"myapp.secret_key_base\": [\r\n      doc: \"A secret key used by Phoenix\",\r\n      to: \"myapp.Elixir.MyApp.Endpoint.secret_key_base\",\r\n      datatype: :binary,\r\n      default: \"redacted\"\r\n    ],\r\n    ...\r\n  ],\r\n  translations: [\r\n    ...\r\n  ]\r\n]\r\n```\r\n\r\n```\r\n# myapp.conf\r\n\r\n# The port on the local machine that the app will mount to\r\nmyapp.http.port = 4000\r\n\r\n# A hostname at which this application can be reached\r\nmyapp.url.host = \"example.com\"\r\n\r\n# The port that pairs with the hostname\r\nmyapp.url.port = 80\r\n\r\n# A secret key used by Phoenix\r\nmyapp.secret_key_base = \"redacted\"\r\n```\r\n\r\n```erlang\r\n% rel/myapp/releases/1.0.1/sys.config\r\n\r\n[{sasl,[{errlog_type,error}]},\r\n...\r\n {logger,\r\n     [{console,\r\n          [{format,<<\"$time $metadata[$level] $message\\n\">>},\r\n           {metadata,[request_id]}]},\r\n      {level,info}]},\r\n {phoenix,[{serve_endpoints,true}]},\r\n {myapp,\r\n      {env,prod},\r\n      {'Elixir.MyApp.Endpoint',\r\n          [{http,[{port,4000}]},\r\n           {url,[{host,<<\"localhost\">>}]},\r\n           {secret_key_base,\r\n               <<\"redacted\">>},\r\n           {render_errors,\r\n               [{accepts,[<<\"json\">>]},{view,'Elixir.MyApp.ErrorView'}]},\r\n           {pubsub,\r\n               [{name,'Elixir.MyApp.PubSub'},\r\n                {adapter,'Elixir.Phoenix.PubSub.PG2'}]},\r\n           {server,true},\r\n           {root,<<\".\">>}]}]}\r\n...\r\n ].\r\n```\r\n\r\nSo far so good, the release seems to have generated properly. However, when I run the app with `./rel/myapp/bin/myapp start`, the following gets used as the config:\r\n\r\n```erlang\r\n% rel/myapp/running-config/sys.config\r\n\r\n[{sasl,[{errlog_type,error}]},\r\n {logger,\r\n     [{console,\r\n          [{format,<<\"$time $metadata[$level] $message\\n\">>},\r\n           {metadata,[request_id]}]},\r\n      {level,info}]},\r\n {phoenix,[{serve_endpoints,true}]},\r\n {myapp,\r\n     [{'Elixir.MyApp.Endpoint',\r\n          [{secret_key_base,<<\"redacted\">>},\r\n           {url,[{port,80},{host,<<\"example.com\">>}]},\r\n           {http,[{port,4000}]}]},\r\n      {env,prod}\r\n     ...\r\n    ].\r\n```\r\n\r\nAs you can see, there's a substantial amount of configuration missing from `MyApp.Endpoint`. I was led to this issue because Phoenix PubSub wasn't working, and I eventually investigated the exrm config, as I was not having this issue running in dev.\r\n\r\nI tried asking on the Elixir Slack, but we couldn't figure it out there, so I hope it's ok that I created an issue! 😄 "},"comment":{"url":"https://api.github.com/repos/bitwalker/exrm/issues/comments/213422671","html_url":"https://github.com/bitwalker/exrm/issues/335#issuecomment-213422671","issue_url":"https://api.github.com/repos/bitwalker/exrm/issues/335","id":213422671,"user":{"login":"martin-langhoff","id":5116932,"avatar_url":"https://avatars.githubusercontent.com/u/5116932?v=3","gravatar_id":"","url":"https://api.github.com/users/martin-langhoff","html_url":"https://github.com/martin-langhoff","followers_url":"https://api.github.com/users/martin-langhoff/followers","following_url":"https://api.github.com/users/martin-langhoff/following{/other_user}","gists_url":"https://api.github.com/users/martin-langhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/martin-langhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin-langhoff/subscriptions","organizations_url":"https://api.github.com/users/martin-langhoff/orgs","repos_url":"https://api.github.com/users/martin-langhoff/repos","events_url":"https://api.github.com/users/martin-langhoff/events{/privacy}","received_events_url":"https://api.github.com/users/martin-langhoff/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T13:09:07Z","updated_at":"2016-04-22T13:09:07Z","body":"What exrm / conform versions in use? I might be affected by same or similar issue. \r\n\r\n```\r\nconform_exrm 1.0.0\r\nexrm 1.0.3\r\nconform 2.0.0\r\n```"}}