fixes
This commit is contained in:
parent
39ced1a5af
commit
bb84ca34a8
3 changed files with 12 additions and 12 deletions
|
|
@ -80,6 +80,9 @@ COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|||
COPY docker/php/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
# Pass container env vars through to PHP-FPM workers (needed for settings.php overrides).
|
||||
RUN echo 'clear_env = no' >> /usr/local/etc/php-fpm.d/zz-env.conf
|
||||
|
||||
RUN chown -R www-data:www-data web/sites/default/files && \
|
||||
chmod -R 755 web/sites/default/files && \
|
||||
chmod 444 web/sites/default/settings.php
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@
|
|||
<p class="text-xs tracking-widest uppercase text-pt-blue-500 font-semibold mt-2">Years Open</p>
|
||||
</div>
|
||||
<div class="font-hedvig text-center">
|
||||
<p class="text-[4.5rem] text-pt-blue-500 leading-none">300</p>
|
||||
<p class="text-[4.5rem] text-pt-blue-500 leading-none">3,100</p>
|
||||
<p class="text-xs tracking-widest uppercase text-pt-blue-500 font-semibold mt-2">Patients Served</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,20 +19,17 @@ $settings['hash_salt'] = getenv('HASH_SALT') ?: 'replace-this-in-production';
|
|||
|
||||
$settings['update_free_access'] = FALSE;
|
||||
|
||||
if ($postmark_key = getenv('POSTMARK_API_KEY')) {
|
||||
$config['symfony_mailer.mailer_transport.postmark']['configuration']['dsn'] =
|
||||
'postmark+api://' . $postmark_key . '@default';
|
||||
}
|
||||
|
||||
// On localhost/DEBUG, use the core 'php_mail' interface (which respects sendmail_path
|
||||
// from php.ini, overridden to our fake-sendmail.sh that logs the email to console
|
||||
// and always succeeds). This guarantees booking requests never fail with
|
||||
// "mail_failed" during development.
|
||||
// In non-DEBUG (production), use symfony_mailer + Postmark.
|
||||
$is_dev = (bool) getenv('DEBUG');
|
||||
$postmark_key = getenv('POSTMARK_API_KEY');
|
||||
|
||||
if ($is_dev) {
|
||||
$config['system.mail']['interface']['default'] = 'php_mail';
|
||||
} elseif ($postmark_key) {
|
||||
} else {
|
||||
if (!$postmark_key) {
|
||||
throw new \RuntimeException('POSTMARK_API_KEY is not set — refusing to start without a mail transport.');
|
||||
}
|
||||
$config['symfony_mailer.mailer_transport.postmark']['configuration']['dsn'] =
|
||||
'postmark+api://' . $postmark_key . '@default';
|
||||
$config['mailer_transport.settings']['default_transport'] = 'postmark';
|
||||
$config['system.mail']['interface']['default'] = 'symfony_mailer';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue