Drop app_local.php from production and show the mail transport in polls remind
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:
1 parent
f21aead039
commit
7fa33bbbdd
10 files changed
+65
-50
No files matched your search
+2
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user