From d49fadf15b7e0d2c7738d6312d6e20822cbd347d Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 16 Apr 2021 09:21:34 -0400 Subject: [PATCH] forward shutdown request from compose to child --- docker/app/run-development | 2 +- docker/app/run-test | 2 +- lib/philomena/application.ex | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/app/run-development b/docker/app/run-development index c9f76ec7..e257ddab 100755 --- a/docker/app/run-development +++ b/docker/app/run-development @@ -38,4 +38,4 @@ createdb -h postgres -U postgres philomena_dev && mix ecto.setup_dev && mix rein background & # Run the application -START_WORKER=true mix phx.server +START_WORKER=true exec mix phx.server diff --git a/docker/app/run-test b/docker/app/run-test index 3337be2a..4c120740 100755 --- a/docker/app/run-test +++ b/docker/app/run-test @@ -21,4 +21,4 @@ mix ecto.create mix ecto.load # Test the application -mix test +exec mix test diff --git a/lib/philomena/application.ex b/lib/philomena/application.ex index 6c442d52..28d7d645 100644 --- a/lib/philomena/application.ex +++ b/lib/philomena/application.ex @@ -32,7 +32,7 @@ defmodule Philomena.Application do PhilomenaWeb.Endpoint, # Connection drainer for SIGTERM - {Plug.Cowboy.Drainer, refs: [PhilomenaWeb.Endpoint.HTTP], shutdown: 5_000} + {Plug.Cowboy.Drainer, refs: [PhilomenaWeb.Endpoint.HTTP]} ] # See https://hexdocs.pm/elixir/Supervisor.html