Files
Plenario/config/app_local.example.php
gnilebeinandClaude Sonnet 5.5 7fa33bbbdd
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
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>
2026-11-16 14:52:58 +01:00

38 lines
1.4 KiB
PHP

<?php
/*
* Development defaults for PlenarIO. Only for local work: `composer install` copies this file to
* config/app_local.php (gitignored, never overwritten afterwards).
*
* Production does NOT use app_local.php. Everything is configured in config/.env or real environment
* variables (see config/.env.example); config/app.php reads them. The release package and the Docker image
* ship without app_local.php on purpose: it takes precedence over the environment, so a stale copy would
* silently override settings (e.g. force the file mail transport).
*/
use function Cake\Core\env;
return [
'debug' => filter_var(env('DEBUG', true), FILTER_VALIDATE_BOOLEAN),
'App' => [
'fullBaseUrl' => env('APP_FULL_BASE_URL', 'http://localhost:8765'),
],
'Security' => [
// Replaced by a random value during `composer install`
'salt' => env('SECURITY_SALT', '__SALT__'),
],
'Plenario' => [
// Shows the admin link on the confirmation page. Development only!
'showAdminLinkAfterCreate' => filter_var(env('SHOW_ADMIN_LINK_AFTER_CREATE', env('DEBUG', true)), FILTER_VALIDATE_BOOLEAN),
],
'EmailTransport' => [
// Mails are written as .eml files to tmp/mails/ unless an SMTP server is configured
'default' => env('SMTP_HOST') || env('EMAIL_TRANSPORT_DEFAULT_URL') ? [] : [
'className' => \App\Mailer\Transport\FileTransport::class,
],
],
];