From b21316248572cb27ed1f504529ad6680a473022e Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 2 Jan 2024 20:42:01 +0100 Subject: gemini --- bin/gemini.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/gemini.sh (limited to 'bin/gemini.sh') 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 -- cgit v1.2.3