Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

server: remove duplicate healthcheck

+3 -8
+1 -1
apps/nix/lib/nix/eval.ex
··· 35 35 end 36 36 37 37 def run(%Eval.Request{} = req, opts) do 38 - {:ok, pid} = GenServer.start_link(Eval, {req, opts} |> dbg()) 38 + {:ok, pid} = GenServer.start_link(Eval, {req, opts}) 39 39 40 40 # set a 10 hour timeout for the genserver 41 41 # if this timeout is exceeded the child process may not be killed
-4
apps/sower/lib/sower_web/controllers/page_controller.ex
··· 4 4 def home(conn, _params) do 5 5 render(conn, :home) 6 6 end 7 - 8 - def health(conn, _params) do 9 - conn |> resp(200, ":ok") 10 - end 11 7 end
+2 -2
apps/sower/lib/sower_web/healthcheck.ex
··· 3 3 4 4 def init(opts), do: opts 5 5 6 - def call(%Plug.Conn{request_path: "/healthy"} = conn, _opts) do 6 + def call(%Plug.Conn{request_path: "/health"} = conn, _opts) do 7 7 {:ok, _} = Sower.Repo.query("SELECT 1") 8 8 9 9 conn 10 - |> send_resp(200, "") 10 + |> send_resp(200, ":ok") 11 11 |> halt() 12 12 end 13 13
-1
apps/sower/lib/sower_web/router.ex
··· 30 30 pipe_through :browser 31 31 32 32 get "/", PageController, :home 33 - get "/health", PageController, :health 34 33 35 34 scope "/client" do 36 35 get "/bootstrap", BootstrapController, :client_script