blob: 5c2a8451b8ec91566998ce3a679470ea15487090 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
if ! type entr > /dev/null; then
apk add entr
fi
openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem -days 3650 -nodes -subj "/CN=localhost"
# php $(pwd)/public/index.php
#find $(pwd) -type f -name '*.php' -o -name '*.twig'
find $(pwd) -type f \( -name "*.php" -o -name "*.twig" \) -not \( -path "*/vendor/*" \) | entr -rn php $(pwd)/public/index.php
|