{"action":"created","issue":{"url":"https://api.github.com/repos/bitwalker/distillery/issues/59","repository_url":"https://api.github.com/repos/bitwalker/distillery","labels_url":"https://api.github.com/repos/bitwalker/distillery/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/bitwalker/distillery/issues/59/comments","events_url":"https://api.github.com/repos/bitwalker/distillery/issues/59/events","html_url":"https://github.com/bitwalker/distillery/issues/59","id":172710320,"number":59,"title":"Application starts with foreground option but not start option","user":{"login":"brunogirin","id":216028,"avatar_url":"https://avatars.githubusercontent.com/u/216028?v=3","gravatar_id":"","url":"https://api.github.com/users/brunogirin","html_url":"https://github.com/brunogirin","followers_url":"https://api.github.com/users/brunogirin/followers","following_url":"https://api.github.com/users/brunogirin/following{/other_user}","gists_url":"https://api.github.com/users/brunogirin/gists{/gist_id}","starred_url":"https://api.github.com/users/brunogirin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunogirin/subscriptions","organizations_url":"https://api.github.com/users/brunogirin/orgs","repos_url":"https://api.github.com/users/brunogirin/repos","events_url":"https://api.github.com/users/brunogirin/events{/privacy}","received_events_url":"https://api.github.com/users/brunogirin/received_events","type":"User","site_admin":false},"labels":[{"id":408458806,"url":"https://api.github.com/repos/bitwalker/distillery/labels/bug","name":"bug","color":"ee0701","default":true},{"id":408461880,"url":"https://api.github.com/repos/bitwalker/distillery/labels/os/*nix","name":"os/*nix","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":69,"created_at":"2016-08-23T14:13:29Z","updated_at":"2016-11-12T02:39:49Z","closed_at":"2016-08-26T19:19:07Z","body":"### Steps to reproduce\n\nI am attempting to package and run a \"hello world\" example using Plug, as described in the supervised handlers section of the [Plug documentation](https://hexdocs.pm/plug/readme.html#supervised-handlers).\n\nI kept the `rel/config.exs` file unchanged from the default produced by `mix release.init`.\n\nSteps:\n1. Run mix release\n2. Start the app\n3. Send a ping to see if it's running\n\nWhen running with the `foreground` option or via `iex -S mix`, it all works fine. When running the `start` option, the app doesn't start. So in essence, this doesn't work:\n\n```\n$ ./rel/imby_platform/bin/imby_platform start\n$ ./rel/imby_platform/bin/imby_platform ping\nNode 'imby_platform@127.0.0.1' not responding to pings.\n```\n\nWhereas this works:\n\n```\n$ ./rel/imby_platform/bin/imby_platform foreground\n```\n\nthen from a different terminal:\n\n```\n$ ./rel/imby_platform/bin/imby_platform ping\npong\n```\n\nto add complication to the problem, when I stop the `foreground` app with ^C, I get the prompt back but the app doesn't stop.\n### Verbose Logs\n\n$ mix release --verbose\n==> Loading configuration..\n==> Assembling release..\n==> Building release imby_platform:0.1.0 using environment dev\n==> Discovered applications:\n  sasl-3.0\n    from: /usr/lib/erlang/lib/sasl-3.0\n    applications:\n      :kernel\n      :stdlib\n    includes: none\n\n  iex-1.3.2\n    from: /usr/local/lib/elixir/bin/../lib/iex\n    applications:\n      :kernel\n      :stdlib\n      :elixir\n    includes: none\n\n  imby_platform-0.1.0\n    from: _build/dev/lib/imby_platform\n    applications:\n      :kernel\n      :stdlib\n      :elixir\n      :logger\n      :cowboy\n      :plug\n    includes: none\n\n  kernel-5.0\n    from: /usr/lib/erlang/lib/kernel-5.0\n    applications: none\n    includes: none\n\n  stdlib-3.0.1\n    from: /usr/lib/erlang/lib/stdlib-3.0.1\n    applications:\n      :kernel\n    includes: none\n\n  elixir-1.3.2\n    from: /usr/local/lib/elixir/bin/../lib/elixir\n    applications:\n      :kernel\n      :stdlib\n      :compiler\n    includes: none\n\n  compiler-7.0.1\n    from: /usr/lib/erlang/lib/compiler-7.0.1\n    applications:\n      :kernel\n      :stdlib\n    includes: none\n\n  logger-1.3.2\n    from: /usr/local/lib/elixir/bin/../lib/logger\n    applications:\n      :kernel\n      :stdlib\n      :elixir\n    includes: none\n\n  cowboy-1.0.4\n    from: _build/dev/lib/cowboy\n    applications:\n      :kernel\n      :stdlib\n      :ranch\n      :cowlib\n      :crypto\n    includes: none\n\n  ranch-1.2.1\n    from: _build/dev/lib/ranch\n    applications:\n      :kernel\n      :stdlib\n    includes: none\n\n  cowlib-1.0.2\n    from: _build/dev/lib/cowlib\n    applications:\n      :kernel\n      :stdlib\n      :crypto\n    includes: none\n\n  crypto-3.7\n    from: /usr/lib/erlang/lib/crypto-3.7\n    applications:\n      :kernel\n      :stdlib\n    includes: none\n\n  plug-1.2.0\n    from: _build/dev/lib/plug\n    applications:\n      :kernel\n      :stdlib\n      :elixir\n      :crypto\n      :logger\n      :mime\n    includes: none\n\n  mime-1.0.1\n    from: _build/dev/lib/mime\n    applications:\n      :kernel\n      :stdlib\n      :elixir\n    includes: none\n\n==> Generated overlay vars:\n    release_name=:imby_platform\n    release_version=\"0.1.0\"\n    is_upgrade=false\n    upgrade_from=:latest\n    dev_mode=true\n    include_erts=false\n    include_src=false\n    include_system_libs=true\n    erl_opts=\"\"\n    erts_vsn=\"8.0.2\"\n    output_dir=\"rel/imby_platform\"\n==> Copying applications to rel/imby_platform\n==> Generating nodetool\n==> Generating start_erl.data\n==> Generating vm.args\n==> Generating sys.config from config/config.exs\n==> Generating boot script\n==> Generating RELEASES\n==> Generating start_clean.boot\n==> Applying overlays\n==> Applying mkdir overlay\n    dst: releases/0.1.0/hooks\n==> Applying mkdir overlay\n    dst: releases/0.1.0/commands\n==> You have set dev_mode to true, skipping archival phase\n==> Release successfully built!\n    You can run it in one of the following ways:\n      Interactive: rel/imby_platform/bin/imby_platform console\n      Foreground: rel/imby_platform/bin/imby_platform foreground\n      Daemon: rel/imby_platform/bin/imby_platform start\n### Description of issue\n\nSee above.\n\nThis is on Ubuntu 16.04, Erlang 19.0, ERTS 8.0.2, Elixir 1.3.2\n\n`elr/config.exs` is unchanged from the default generated by `mix release.init`:\n\n```\nuse Mix.Releases.Config,\n    # This sets the default release built by `mix release`\n    default_release: :default,\n    # This sets the default environment used by `mix release`\n    default_environment: :dev\n\n# For a full list of config options for both releases\n# and environments, visit https://hexdocs.pm/distillery/configuration.html\n\n\n# You may define one or more environments in this file,\n# an environment's settings will override those of a release\n# when building in that environment, this combination of release\n# and environment configuration is called a profile\n\nenvironment :dev do\n  set dev_mode: true\n  set include_erts: false\nend\n\nenvironment :prod do\n  set include_erts: true\n  set include_src: false\nend\n\n# You may define one or more releases in this file.\n# If you have not set a default release, or selected one\n# when running `mix release`, the first release in the file\n# will be used by default\n\nrelease :imby_platform do\n  set version: current_version(:imby_platform)\nend\n```\n"},"comment":{"url":"https://api.github.com/repos/bitwalker/distillery/issues/comments/260096636","html_url":"https://github.com/bitwalker/distillery/issues/59#issuecomment-260096636","issue_url":"https://api.github.com/repos/bitwalker/distillery/issues/59","id":260096636,"user":{"login":"Valentin-Seehausen","id":10600295,"avatar_url":"https://avatars.githubusercontent.com/u/10600295?v=3","gravatar_id":"","url":"https://api.github.com/users/Valentin-Seehausen","html_url":"https://github.com/Valentin-Seehausen","followers_url":"https://api.github.com/users/Valentin-Seehausen/followers","following_url":"https://api.github.com/users/Valentin-Seehausen/following{/other_user}","gists_url":"https://api.github.com/users/Valentin-Seehausen/gists{/gist_id}","starred_url":"https://api.github.com/users/Valentin-Seehausen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Valentin-Seehausen/subscriptions","organizations_url":"https://api.github.com/users/Valentin-Seehausen/orgs","repos_url":"https://api.github.com/users/Valentin-Seehausen/repos","events_url":"https://api.github.com/users/Valentin-Seehausen/events{/privacy}","received_events_url":"https://api.github.com/users/Valentin-Seehausen/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T02:39:49Z","updated_at":"2016-11-12T02:39:49Z","body":"I try to host the project on a different host than the build server (have you tried having build and staging/production on on server?). If that doesn't work I sure will put together a project to reproduce the issue.\r\n\r\nThanks for the great support!"}}
{"actor":{"display_login":"Valentin-Seehausen"}}