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

Add VIP config file #98

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Add VIP config file #98

wants to merge 2 commits into from

Conversation

juliobranha
Copy link

  • Add vip-config.php file
  • If the host is Pantheon the file will be removed

@juliobranha juliobranha requested a review from a team as a code owner June 5, 2024 21:46
Copy link
Member

@jakewrfoster jakewrfoster left a comment

Choose a reason for hiding this comment

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

There are a few outstanding questions that I think we should get to the bottom of before approving. Thanks for tackling this!

configure.php Outdated Show resolved Hide resolved

echo "Done!\n\n";
} elseif ( 'pantheon' === $hosting_provider ) {
write( 'Deleting VIP-specific GitHub Action workflows...' );

delete_files(
[
'vip-config',
Copy link
Member

Choose a reason for hiding this comment

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

when/where is this being created that it is necessary to delete this at this point?

Copy link
Author

Choose a reason for hiding this comment

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

@jakewrfoster I guess as part of the repo we have vip-config/vip-config.php that needs to be removed?

Comment on lines +31 to +42
/**
* Set a high default limit to avoid too many revisions from polluting the database.
*
* @see https://docs.wpvip.com/technical-references/vip-platform/post-revisions/
*
* Posts with high revisions can result in fatal errors or have performance issues.
*
* Feel free to adjust this depending on your use cases.
*/
if ( ! defined( 'WP_POST_REVISIONS' ) ) {
define( 'WP_POST_REVISIONS', 100 );
}
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this should be moved to Alleyvate. maybe @kevinfodness can weigh in on this? I assume we would want this same approach to employed on Pantheon sites as well as VIP sites.

Copy link
Member

Choose a reason for hiding this comment

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

It comes from https://github.com/Automattic/vip-go-skeleton/blob/production/vip-config/vip-config.php

We might want to add it to Alleyvate for non-VIP sites, yes, but for our purposes here we're cloning what VIP is providing us with in their skeleton.

Another possibility for how to tackle this would be to actually fetch the latest and greatest from the VIP skeleton repo rather than maintaining a copy here. If installing VIP, then clone skeleton, copy relevant files, etc.

Copy link
Member

Choose a reason for hiding this comment

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

gotcha, thanks!

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 we should make a separate issue for the automating the download of the VIP Config file.

Copy link
Member

@jakewrfoster jakewrfoster left a comment

Choose a reason for hiding this comment

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

the comment about the touch command update should be addressed or answered before moving forward!

@juliobranha
Copy link
Author

the comment about the touch command update should be addressed or answered before moving forward!

Sorry @jakewrfoster forgot about this, amended now

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.

3 participants