Skip to content

Commit d026758

Browse files
committed
fix(deploy): delete PHX_SERVER env before starting app in reset/seed
Application.put_env is overridden by runtime.exs during app startup since it re-reads PHX_SERVER from the environment. Deleting the env var ensures runtime.exs never enables the HTTP server.
1 parent 90c4e52 commit d026758

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/craftplan/release.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ defmodule Craftplan.Release do
4141
end
4242

4343
defp start_app_without_server do
44-
Application.put_env(:craftplan, CraftplanWeb.Endpoint, server: false)
44+
System.delete_env("PHX_SERVER")
4545
{:ok, _} = Application.ensure_all_started(@app)
4646
end
4747

0 commit comments

Comments
 (0)