mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-17 11:04:22 +01:00
forward shutdown request from compose to child
This commit is contained in:
parent
2e49266549
commit
d49fadf15b
3 changed files with 3 additions and 3 deletions
|
@ -38,4 +38,4 @@ createdb -h postgres -U postgres philomena_dev && mix ecto.setup_dev && mix rein
|
||||||
background &
|
background &
|
||||||
|
|
||||||
# Run the application
|
# Run the application
|
||||||
START_WORKER=true mix phx.server
|
START_WORKER=true exec mix phx.server
|
||||||
|
|
|
@ -21,4 +21,4 @@ mix ecto.create
|
||||||
mix ecto.load
|
mix ecto.load
|
||||||
|
|
||||||
# Test the application
|
# Test the application
|
||||||
mix test
|
exec mix test
|
||||||
|
|
|
@ -32,7 +32,7 @@ defmodule Philomena.Application do
|
||||||
PhilomenaWeb.Endpoint,
|
PhilomenaWeb.Endpoint,
|
||||||
|
|
||||||
# Connection drainer for SIGTERM
|
# 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
|
# See https://hexdocs.pm/elixir/Supervisor.html
|
||||||
|
|
Loading…
Reference in a new issue