ItinerisLtd.trellis_flush_rewrite_rules_during_deploy

trellis_flush_rewrite_rules_during_deploy

Build Status GitHub tag license

Goal

This project resets the rewrite rules of WordPress (which are based on registered post types and more) during deployments using Trellis.

Minimum Requirements

Installation

To install, add this role to requirements.yml:

# requirements.yml
- src: itinerisltd.trellis_flush_rewrite_rules_during_deploy
  version: 0.1.0 # Check for latest version!

Next, include this role in the deploy_finalize_after hook:

# group_vars/all/deploy-hooks.yml
# Learn more on https://roots.io/trellis/docs/deploys/#hooks
deploy_finalize_after:
  - "{{ playbook_dir }}/vendor/roles/itinerisltd.trellis_flush_rewrite_rules_during_deploy/tasks/main.yml"

Make sure to place this role before cache purging roles, like trellis-purge-wp-rocket-cache-during-deploy, trellis-purge-kinsta-cache-during-deploy, etc.

Usage

Deploy your site as usual. No additional steps are needed.

This role will run $ wp rewrite flush during the Trellis deployment process.

FAQs

It looks awesome. Where can I find some more goodies like this?

This isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?

Thank you! It's great to know you like it. Instead of leaving reviews on wp.org, you can:

Feedback

Please share your feedback! We want to make this tool as useful as possible. Feel free to submit an issue to suggest improvements or let us know what you liked or disliked. No feedback is too small.

Change Log

For details on recent changes, please check CHANGELOG.

Security

If you find any security issues, please contact us directly via email at [email protected] instead of using the issue tracker.

Credits

The trellis_flush_rewrite_rules_during_deploy project is developed by Itineris Limited and created by Tang Rufus.

You can find the full list of contributors here.

License

The trellis_flush_rewrite_rules_during_deploy project is licensed under the MIT License. For more details, please refer to the License File.

Informazioni sul progetto

Resets WordPress' rewrite rules (based on registered post types, etc) during Trellis deploys

Installa
ansible-galaxy install ItinerisLtd.trellis_flush_rewrite_rules_during_deploy
Licenza
mit
Download
44.4k
Proprietario
We’re a full-service digital marketing agency that partners with ambitious clients to help them grow