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

Download WP core #23

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Download WP core #23

wants to merge 1 commit into from

Conversation

simonrjones
Copy link
Member

@simonrjones simonrjones commented Feb 7, 2025

Added to wordpress recipe:

  • Download WordPress core (without the default themes and plugins).
  • Add wp() function if you want to run other WP CLI commands.
  • Add docs on how to use it, including how to run composer install in project root folder (the existing WP projects simply run composer install which is not optimised for production, deployer has a deploy:vendors task for this.

Testing

Test this on:

Use this branch for deployer recipes in your composer.json

{
    "require-dev": {
        "studio24/deployer-recipes": "dev-feature/wordpress",
    }
}

In your deploy.php:

Remove any custom code to download WordPress core or run composer install in project root.

Require recipe:

require 'vendor/studio24/deployer-recipes/recipe/wordpress.php';

Set wordpress folder if different to web/wordpress/:

// WordPress core folder
set('wordpress_core_folder', 'path/to/wordpress/');

If you need to run composer in root add:

task('deploy', [
    'deploy:prepare',
    'deploy:vendors',
    'deploy:publish',
]);

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.

1 participant