Skip to content

Commit

Permalink
fix: changing ports
Browse files Browse the repository at this point in the history
  • Loading branch information
Quadrubo committed Jul 19, 2023
1 parent 57ada0c commit 812d74d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docker/deploy/etc/s6-overlay/s6-rc.d/nginx/data/check
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/command/with-contenv bash
if [[ -z "${HTTP_PORT}" ]]; then
url="http://localhost/ping"
else
url="http://localhost:${HTTP_PORT}/ping"
fi

response=$(curl --location --insecure --silent "$url")

if [[ $response == "pong" ]]; then
exit 0
else
echo "❌ There seems to be a failure in checking the web server + PHP-FPM. Here's the response:"
echo $response
exit 1
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
laravel-automations

0 comments on commit 812d74d

Please sign in to comment.