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

Only generate WordPress config for domains with WordPress enabled #446

Closed
wants to merge 1 commit into from

Conversation

MrJmpl3
Copy link
Contributor

@MrJmpl3 MrJmpl3 commented Oct 5, 2023

Type of Change

Generation of configuration

What issue does this relate to?

Resolves #435

What should this PR do?

Fix the issue #435 by switching the generation for the WordPress config to only happen on domains with WordPress, rather than all domains when any domain has WordPress.

What are the acceptance criteria?

The pull request need fix the issue and cannot break the app

Please, tag this pull request to make a point in Hacktoberfest 2023

@@ -64,7 +64,8 @@ export default (domains, global) => {
files[`${sitesDir}/${domain.server.domain.computed}.conf`] = toConf(websiteConf(domain, domains, global, ipPortPairs));
// WordPress
if (domains.some(d => d.php.wordPressRules.computed))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this if statement is redundant now?

@MattIPv4 MattIPv4 changed the title resolves #435 Only generate WordPress config for domains with WordPress enabled Oct 5, 2023
@MattIPv4
Copy link
Member

👋 Any update on this @MrJmpl3?

@MattIPv4
Copy link
Member

Closing due to lack of movement, outstanding review comments + conflicts. Please let me know if you'd like help getting this landed :)

@MattIPv4 MattIPv4 closed this Mar 25, 2024
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.

Wordpress config is generated for every domain
2 participants