diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-01-02 20:42:01 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-01-05 12:33:59 +0100 |
commit | b21316248572cb27ed1f504529ad6680a473022e (patch) | |
tree | f8a2f81258cae3b1d2429fb7df5a3287954b683a /bin/gemini.sh | |
parent | f621d95f89ded05a2e916c5ee363bfe75ea37482 (diff) |
gemini
Diffstat (limited to 'bin/gemini.sh')
-rwxr-xr-x | bin/gemini.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/gemini.sh b/bin/gemini.sh new file mode 100755 index 0000000..5c2a845 --- /dev/null +++ b/bin/gemini.sh @@ -0,0 +1,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 |