Trying to check whether or not a database is ready by it's HTTP status before executing the load_db script:
db:
## Startup database container, takes about 30 seconds to be available on port 7474
load_db: db
## Check status and break loop if successful
until $(curl --output /dev/null --silent --head --fail http://localhost:7474) ; do \
printf '.' ; \
sleep 5 ; \
done
## load database
Everytime I run make load_db
I keep getting the error:
/bin/bash: -c: line 0: syntax error near unexpected token `;'