Skip to content
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

Throw warning when settings migration detects custom env() calls #47

Open
edalzell opened this issue May 6, 2020 · 2 comments
Open
Labels
feature request New feature or request

Comments

@edalzell
Copy link

edalzell commented May 6, 2020

Spent hours trying to figure out why my site wasn't working, to have Jason figure out I was missing SITE_URL in my .env, which was referenced in sites.php config.

I understand that a warning would have been displayed as part of the migration, but this is something IMO that should be really highlighted as it causes one's site to break and it's nearly impossible to figure out.

Perhaps a big warning section at the bottom highlighting the breaking issues?

@jasonvarga
Copy link
Member

We'll just make everything red.

@jesseleite
Copy link
Member

I was missing SITE_URL in my .env, which was referenced in sites.php config.

Maybe I can have the settings migrator warn if it detects custom env() calls. That said, the migrator is never going to catch all the custom stuff you did in your v2 apps.

Perhaps a big warning section at the bottom highlighting the breaking issues?

The errors and warnings are already in the output, and the summary line at the bottom clearly points out when there are errors and warnings. That said, I do like your idea in #46. Already started hacking on that one 👍

@jesseleite jesseleite changed the title Flag major issues Throw warning when settings migration detects custom env() calls May 9, 2020
@jesseleite jesseleite added the feature request New feature or request label May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants