ItinerisLtd.trellis_flush_rewrite_rules_during_deploy
trellis_flush_rewrite_rules_during_deploy
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?
- Check out articles on Itineris' blog
- Explore more projects on Itineris' GitHub profile
- Look for plugins on Itineris' wp.org profile
- Follow @itineris_ltd and @TangRufus on Twitter
- Consider hiring Itineris for your next website project
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:
- Tweet something positive mentioning @itineris_ltd and @TangRufus
- Star this GitHub repository
- Watch this GitHub repository
- Write a blog post about your experience
- Submit pull requests with improvements
- Hire Itineris for assistance
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.
Resets WordPress' rewrite rules (based on registered post types, etc) during Trellis deploys
ansible-galaxy install ItinerisLtd.trellis_flush_rewrite_rules_during_deploy