生产现场未通知
Production Site fails to notify
当我的通知代码 运行s 正常时,我在 AbstractSmtpTransport.php 行 383 中收到错误 Swift_TransportException:
预期响应代码 250 但在我的 Laravel 5.3 生产站点上得到代码“”,消息“”。当我查看完整的堆栈跟踪时,它似乎正在缓存旧的不正确的登录凭据。我已经检查并仔细检查了更新的 'config/mail.php' 文件和 .env 文件。堆栈跟踪显示 "Swift_Transport_Esmtp_Auth_LoginAuthenticator->authenticate(object(Swift_SmtpTransport" 具有与上述更新文件不同的完全过时的凭据。我有 运行 "sudo systemctl restart nginx" 和 "php artisan cache:clear" 没有变化。有人可以告诉我如何更有效地解决此错误消息吗?我需要更新其他文件吗?或设置?使用 mailtrap 在我的开发机器上一切正常。
见Laravel 5.3 > Configuration Caching
您通常应该 运行 php artisan config:cache
命令作为生产部署例程的一部分。
运行 php artisan config:cache
并重启你的服务器。这将报废 loaded/cached 配置文件数据。
当我的通知代码 运行s 正常时,我在 AbstractSmtpTransport.php 行 383 中收到错误 Swift_TransportException: 预期响应代码 250 但在我的 Laravel 5.3 生产站点上得到代码“”,消息“”。当我查看完整的堆栈跟踪时,它似乎正在缓存旧的不正确的登录凭据。我已经检查并仔细检查了更新的 'config/mail.php' 文件和 .env 文件。堆栈跟踪显示 "Swift_Transport_Esmtp_Auth_LoginAuthenticator->authenticate(object(Swift_SmtpTransport" 具有与上述更新文件不同的完全过时的凭据。我有 运行 "sudo systemctl restart nginx" 和 "php artisan cache:clear" 没有变化。有人可以告诉我如何更有效地解决此错误消息吗?我需要更新其他文件吗?或设置?使用 mailtrap 在我的开发机器上一切正常。
见Laravel 5.3 > Configuration Caching
您通常应该 运行 php artisan config:cache
命令作为生产部署例程的一部分。
运行 php artisan config:cache
并重启你的服务器。这将报废 loaded/cached 配置文件数据。