preparations and testing for a rewrite, ditching wkhtmltopdf for chrome-driver

This commit is contained in:
christian committed 2025-01-12 20:13:47 +00:00
1 parent cf07363a8d
commit f54d35c312
18 files changed
+516 -77

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
WORKSPACE_PATH=$( pwd )
# Escape the path for safe use in sed
ESCAPED_PATH=$(echo "$WORKSPACE_PATH" | sed 's/\//\\\//g')
echo "[!] Folder is $WORKSPACE_PATH"
echo ' [+] Starting php'
php-fpm83
echo ' [+] Starting Caddy'
sed -i "s|xxxxxxxxxx|$ESCAPED_PATH\/web|g" /etc/caddy/Caddyfile
cd ${WORKSPACE_PATH}/src
composer install
echo ' [+] Starting Chrome'
chromedriver --port=4444 &
chmod 777 ${WORKSPACE_PATH}/cache
chmod 777 ${WORKSPACE_PATH}/logs
caddy run --config /etc/caddy/Caddyfile