Make ping prod task hit the health endpoint

This commit is contained in:
Claudio Ortolina
2025-04-28 10:28:39 +01:00
parent 3cee739fc9
commit 177ce20e6c
+2 -1
View File
@@ -10,6 +10,7 @@ defmodule Mix.Tasks.MusicLibrary.Prod.Ping do
Application.ensure_all_started(:req)
Mix.Shell.IO.info("==> Pinging the production instance")
Req.get!("https://music-library.claudio-ortolina.org/api")
response = Req.get!("https://music-library.claudio-ortolina.org/health")
if response.status !== 200, do: System.halt(1)
end
end