Add Docksal configuration

This commit is contained in:
Oliver Davies 2019-04-16 20:21:47 +01:00
parent 601b18c0df
commit f59152c352
8 changed files with 181 additions and 0 deletions

19
.docksal/commands/test Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
## Test site installation
##
## Usage: fin test
# Abort if anything fails
set -e
# Debug mode switch
if [[ "${DEBUG}" != "" ]]; then
set -x
fi
echo "Testing home page..."
curl -sL -I http://${VIRTUAL_HOST} | grep "HTTP/1.1 200 OK"
curl -sL http://${VIRTUAL_HOST} | grep "My WordPress Site"
echo "Testing login page..."
curl -sL -I http://${VIRTUAL_HOST}/wp-admin | grep "HTTP/1.1 200 OK"