Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
27 lines
1009 B
Bash
Executable File
27 lines
1009 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
USER_ID=$(id -u)
|
|
GROUP_ID=$(id -g)
|
|
|
|
# Ensure the Caddy config and data directories are owned by the current user
|
|
sudo chown -R $USER_ID:$GROUP_ID /config/caddy
|
|
sudo chown -R $USER_ID:$GROUP_ID /data
|
|
sudo touch /var/log/frankenphp.log
|
|
sudo chown $USER_ID:$GROUP_ID /var/log/frankenphp.log
|
|
|
|
# If debugging is enabled, disable Opcache so changes are reflected immediately
|
|
if [ "${APP_DEBUG}" = "true" ] || [ "${APP_DEBUG}" = "1" ]; then
|
|
sudo sed -i 's/opcache.enable = On/opcache.enable = Off/' /usr/local/etc/php/conf.d/winter.ini
|
|
fi
|
|
|
|
# Run server in background
|
|
if [ "${CODESPACES}" = "true" ]; then
|
|
# Ensure environment variables are set correctly for Codespaces
|
|
SERVER_NAME="http://:8000" APP_URL="https://${CODESPACE_NAME}-8000.app.github.dev" /usr/local/bin/frankenphp run -c /etc/frankenphp/Caddyfile -a caddyfile > /var/log/frankenphp.log 2>&1 &
|
|
else
|
|
/usr/local/bin/frankenphp run -c /etc/frankenphp/Caddyfile -a caddyfile > /var/log/frankenphp.log 2>&1 &
|
|
fi
|
|
|