Drop app_local.php from production and show the mail transport in polls remind
CI / Deploy / PHP 8.4 (push) Successful in 1m11s
CI / Deploy / PHP 8.5 (push) Successful in 1m12s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

app_local.php takes precedence over config/.env, so a copy made from an older
template forced the file transport and reminders never left the server.
Release package and Docker image now ship without it; app.php reads the
database from DATABASE_URL (SQLite default). app_local.example.php keeps
development defaults only. polls remind prints the transport and warns when
SMTP_HOST is set but SMTP is not used.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-16 14:52:58 +01:00
1 parent f21aead039
commit 7fa33bbbdd
10 files changed
+65 -50

No files matched your search

+2 -3
View File
@@ -15,11 +15,10 @@ FROM base AS build
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /app
COPY composer.json composer.lock ./
# --no-scripts: the installer must not bake a random salt into app_local.php (SECURITY_SALT comes at runtime)
# --no-scripts: no app_local.php in the image; everything comes from the environment at runtime
RUN composer install --no-dev --no-scripts --no-progress --prefer-dist --optimize-autoloader
COPY . .
RUN composer dump-autoload --no-dev --optimize \
&& cp config/app_local.example.php config/app_local.php
RUN composer dump-autoload --no-dev --optimize
FROM base
WORKDIR /app