{"action":"created","issue":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1382","labels_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1382/labels{/name}","comments_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1382/comments","events_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1382/events","html_url":"https://github.com/phoenixframework/phoenix/issues/1382","id":119484221,"number":1382,"title":"Running rel/app/bin/app console crashes","user":{"login":"sashaafm","id":3422400,"avatar_url":"https://avatars.githubusercontent.com/u/3422400?v=3","gravatar_id":"","url":"https://api.github.com/users/sashaafm","html_url":"https://github.com/sashaafm","followers_url":"https://api.github.com/users/sashaafm/followers","following_url":"https://api.github.com/users/sashaafm/following{/other_user}","gists_url":"https://api.github.com/users/sashaafm/gists{/gist_id}","starred_url":"https://api.github.com/users/sashaafm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashaafm/subscriptions","organizations_url":"https://api.github.com/users/sashaafm/orgs","repos_url":"https://api.github.com/users/sashaafm/repos","events_url":"https://api.github.com/users/sashaafm/events{/privacy}","received_events_url":"https://api.github.com/users/sashaafm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-30T12:39:06Z","updated_at":"2015-11-30T14:16:36Z","closed_at":"2015-11-30T14:15:58Z","body":"I've been trying to deploy my app for testing and showing in AWS and I've been following the guide at the Phoenix's website, but I keep getting this error when I get to that point of trying if it works in the environment. I'm using AWS Ubuntu's 14.04 image.\r\n\r\nRoot: /home/ubuntu/app/rel/app\r\n/home/ubuntu/app/rel/app\r\nErlang/OTP 18 [erts-7.1] [source] [64-bit] [async-threads:10] [kernel-poll:false]\r\n\r\n{\"Kernel pid terminated\",application_controller,\"{application_start_failure,app,{{shutdown,{failed_to_start_child,'Elixir.App.Endpoint',{shutdown,{failed_to_start_child,'Elixir.Phoenix.Endpoint.Server',{undef,[{'Elixir.Phoenix.LiveReloader.Socket','__transports__',[],[]},{'Elixir.Phoenix.Endpoint.CowboyHandler','-child_spec/3-fun-1-',3,[{file,\\\"lib/phoenix/endpoint/cowboy_handler.ex\\\"},{line,62}]},{'Elixir.Enum','-reduce/3-lists^foldl/2-0-',3,[{file,\\\"lib/enum.ex\\\"},{line,1387}]},{'Elixir.Phoenix.Endpoint.CowboyHandler',child_spec,3,[{file,\\\"lib/phoenix/endpoint/cowboy_handler.ex\\\"},{line,61}]},{'Elixir.Phoenix.Endpoint.Server',init,1,[{file,\\\"lib/phoenix/endpoint/server.ex\\\"},{line,20}]},{supervisor,init,1,[{file,\\\"supervisor.erl\\\"},{line,272}]},{gen_server,init_it,6,[{file,\\\"gen_server.erl\\\"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,\\\"proc_lib.erl\\\"},{line,240}]}]}}}}},{'Elixir.App',start,[normal,[]]}}}\"}\r\n\r\nCrash dump is being written to: erl_crash.dump...done\r\nKernel pid terminated (application_controller) ({application_start_failure,app,{{shutdown,{failed_to_start_child,'Elixir.App.Endpoint',{shutdown,{failed_to_start_child,'Elixir.Pho\r\n\r\nAnd my config file is the following:\r\n\r\n# This file is responsible for configuring your application\r\n# and its dependencies with the aid of the Mix.Config module.\r\n#\r\n# This configuration file is loaded before any dependency and\r\n# is restricted to this project.\r\nuse Mix.Config\r\n\r\n# Configures the endpoint\r\nconfig :app, App.Endpoint,\r\n  url: [host: \"localhost\"],\r\n  root: Path.dirname(__DIR__),\r\n  secret_key_base: \"0ijP5EMvNzzHGHvbsHx4ZpahQzfiBsf7ryPS9cpG5ixJjWRIESE2r5KUQydiQNO/\",\r\n  render_errors: [accepts: ~w(html json)],\r\n  pubsub: [name: App.PubSub,\r\n           adapter: Phoenix.PubSub.PG2],\r\n  server: true\r\n\r\n# Configures Elixir's Logger\r\nconfig :logger, :console,\r\n  format: \"$time $metadata[$level] $message\\n\",\r\n  metadata: [:request_id]\r\n\r\n# Import environment specific config. This must remain at the bottom\r\n# of this file so it overrides the configuration defined above.\r\nimport_config \"#{Mix.env}.exs\"\r\n\r\n# Configure phoenix generators\r\nconfig :phoenix, :generators,\r\n  migration: true,\r\n  binary_id: false\r\n\r\nAnd finally my /lib/app.ex file:\r\n\r\ndefmodule App do\r\n  use Application\r\n\r\n  # See http://elixir-lang.org/docs/stable/elixir/Application.html\r\n  # for more information on OTP Applications\r\n  def start(_type, _args) do\r\n    import Supervisor.Spec, warn: false\r\n\r\n    children = [\r\n      # Start the endpoint when the application starts\r\n      worker(App.Endpoint, []),\r\n      # Start the Ecto repository\r\n      worker(App.Repo, []),\r\n      # Here you could define other workers and supervisors as children\r\n      # worker(App.Worker, [arg1, arg2, arg3]),\r\n    ]\r\n\r\n    # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html\r\n    # for other strategies and supported options\r\n    opts = [strategy: :one_for_one, name: App.Supervisor]\r\n    Supervisor.start_link(children, opts)\r\n  end\r\n\r\n  # Tell Phoenix to update the endpoint configuration\r\n  # whenever the application is updated.\r\n  def config_change(changed, _new, removed) do\r\n    App.Endpoint.config_change(changed, removed)\r\n    :ok\r\n  end\r\nend\r\n\r\nThe Endpoint was set as a supervisor, but I changed it to worker like it is specified in the guide. Not sure if that had any implication.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/comments/160642222","html_url":"https://github.com/phoenixframework/phoenix/issues/1382#issuecomment-160642222","issue_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1382","id":160642222,"user":{"login":"chrismccord","id":576796,"avatar_url":"https://avatars.githubusercontent.com/u/576796?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismccord","html_url":"https://github.com/chrismccord","followers_url":"https://api.github.com/users/chrismccord/followers","following_url":"https://api.github.com/users/chrismccord/following{/other_user}","gists_url":"https://api.github.com/users/chrismccord/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismccord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismccord/subscriptions","organizations_url":"https://api.github.com/users/chrismccord/orgs","repos_url":"https://api.github.com/users/chrismccord/repos","events_url":"https://api.github.com/users/chrismccord/events{/privacy}","received_events_url":"https://api.github.com/users/chrismccord/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T14:16:36Z","updated_at":"2015-11-30T14:16:36Z","body":"Please direct support requests to the phoenix-talk mailing list. José's advice would be the first area to investigate since LiveReloader should be be trying to be accessed in a prod release. elixir-lang irc is also a great place for help. Thanks!\n\n> On Nov 30, 2015, at 7:53 AM, José Valim <notifications@github.com> wrote:\n> \n> It seems you are running or building the release in the development environment, as it is trying to access the LiveReloader which is not available in production.\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/phoenixframework/phoenix/issues/1382#issuecomment-160620428>.\n> \n\n"}}