Skip to content

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',
]);

@simonrjones
Copy link
Member Author

Closing since replaced by #25

@simonrjones simonrjones deleted the feature/wordpress branch July 2, 2025 08:42
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.

2 participants