-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear the cached config file after writing to the .env file #4261
Conversation
I saw that you linked my SMTP Issue from #47.
|
Hello, I assume you mean the issue #47 of fiveai/Cachet ;-) The steps you describe are the same ones I did. Of course, I tested the changes on my system before opening the pr. To help me reproduce the error you are getting, please tell me: |
Hello and yes, sir. `[2021-03-24 12:38:08] production.NOTICE: Symfony\Component\HttpKernel\Exception\HttpException in /var/www/html/cachet/app/Http/Middleware/Authenticate.php:58 No log file other than laravel when I ran this command find -L /var/www/html/cachet -name "*.log" |
Mhh it seems that this error occurs because the Authenticate Middleware thinks you are a guest user. Please try the following and try setting the email settings again after each step:
|
Thank you for your input on Cachet 2.x. We are shifting our attention and resources to Cachet 3.x and will no longer be supporting the 2.x version. If your feedback or issue is relevant to the 3.x series, we encourage you to engage with the new branch. For more information on the Cachet rebuild and our plans for 3.x, you can read the announcement here. We appreciate your understanding and look forward to your contributions to the new version. |
This clears the cached config file so that the application loads the new settings from the freshly written .env file.
The command handler writes the new mail settings into the .env file but they are not loaded if the config is cached.
This fixes #4260