Add Docksal configuration
This commit is contained in:
parent
601b18c0df
commit
f59152c352
8 changed files with 181 additions and 0 deletions
19
.docksal/commands/test
Executable file
19
.docksal/commands/test
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue