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

Production environment by default #277

Merged
merged 1 commit into from
Nov 13, 2016
Merged

Conversation

kalenjohnson
Copy link
Sponsor Contributor

In my enormous amount of spare time, I've been working on a side project where I'm working on integrating best practices throughout a WP project.

It seems like a more sensible default for a site would be to default to production, rather than development. Development has all errors being displayed, amongst some other things. It's rather pedantic, but if a user forgets to set this for some reason, the safer option would be production rather than development

In my enormous amount of spare time, I've been working on a side project where I'm working on integrating best practices throughout a WP project.

It seems like a more sensible default for a site would be to default to production, rather than development. Development has all errors being displayed, amongst some other things. It's rather pedantic, but if a user forgets to set this for some reason, the safer option would be production rather than development
@kalenjohnson
Copy link
Sponsor Contributor Author

And to be clear, Laravel triggered this idea for me: https://github.com/laravel/laravel/blob/master/config/app.php#L28

@swalkinshaw
Copy link
Member

I think the idea behind this was that a lot of people were trying out Bedrock/Trellis on development first, and potentially only using them for that purpose so this default reduced a potential extra config setting people had to remember to set.

Probably a good thing to change it though 👍

@swalkinshaw swalkinshaw merged commit 1b1ed49 into master Nov 13, 2016
@swalkinshaw swalkinshaw deleted the default-env-production branch November 13, 2016 19:58
swalkinshaw added a commit that referenced this pull request Nov 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants