forward shutdown request from compose to child

This commit is contained in:
byte[] 2021-04-16 09:21:34 -04:00
parent 2e49266549
commit d49fadf15b
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -21,4 +21,4 @@ mix ecto.create
mix ecto.load
# Test the application
mix test
exec mix test

View file

@ -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