Refactor
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
6157443144
commit
d6e1888ec2
2 changed files with 4 additions and 2 deletions
|
@ -8,5 +8,6 @@ STATUS_CODE="${1:-500}"
|
||||||
|
|
||||||
: "${API_PORT:=8000}"
|
: "${API_PORT:=8000}"
|
||||||
|
|
||||||
curl --silent --show-error --verbose "http://localhost:$API_PORT" \
|
curl --silent --show-error --verbose \
|
||||||
|
"http://localhost:$API_PORT" \
|
||||||
--header "force-fail: $STATUS_CODE"
|
--header "force-fail: $STATUS_CODE"
|
||||||
|
|
|
@ -6,4 +6,5 @@ source .env
|
||||||
|
|
||||||
: "${API_PORT:=8000}"
|
: "${API_PORT:=8000}"
|
||||||
|
|
||||||
curl --silent --show-error --verbose "http://localhost:$API_PORT"
|
curl --silent --show-error --verbose \
|
||||||
|
"http://localhost:$API_PORT"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue