Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itinerisltd/trellis_flush_rewrite_rules_during_deploy
Resets WordPress' rewrite rules (based on registered post types, etc) during Trellis deploys
https://github.com/itinerisltd/trellis_flush_rewrite_rules_during_deploy
ansible-galaxy rewrite-rules trellis wordpress
Last synced: about 2 months ago
JSON representation
Resets WordPress' rewrite rules (based on registered post types, etc) during Trellis deploys
- Host: GitHub
- URL: https://github.com/itinerisltd/trellis_flush_rewrite_rules_during_deploy
- Owner: ItinerisLtd
- License: mit
- Created: 2019-03-20T17:06:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T15:42:28.000Z (over 2 years ago)
- Last Synced: 2023-03-01T18:16:45.797Z (almost 2 years ago)
- Topics: ansible-galaxy, rewrite-rules, trellis, wordpress
- Homepage:
- Size: 10.7 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# trellis_flush_rewrite_rules_during_deploy
[![Build Status](https://travis-ci.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy.svg?token=ptrvJskDR5BKm8thpNdd&branch=master)](https://travis-ci.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy)
[![GitHub tag](https://img.shields.io/github/tag/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy.svg)](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy/tags)
[![license](https://img.shields.io/github/license/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy.svg)](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy/blob/master/LICENSE)- [Goal](#goal)
- [Minimum Requirements](#minimum-requirements)
- [Installation](#installation)
- [Usage](#usage)
- [FAQs](#faqs)
- [It looks awesome. Where can I find some more goodies like this?](#it-looks-awesome-where-can-i-find-some-more-goodies-like-this)
- [This isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?](#this-isnt-on-wporg-where-can-i-give-a-%EF%B8%8F%EF%B8%8F%EF%B8%8F%EF%B8%8F%EF%B8%8F-review)
- [Feedback](#feedback)
- [Change Log](#change-log)
- [Security](#security)
- [Credits](#credits)
- [License](#license)## Goal
Resets WordPress' rewrite rules (based on registered post types, etc) during [Trellis](https://github.com/roots/trellis) deploys.
## Minimum Requirements
- Trellis [9dfddfd](https://github.com/roots/trellis/commit/9dfddfd0d5f7d10886d2f434c02d3bd23edb8684)
- Ansible v2.4
- [WP CLI](https://wp-cli.org/) v2.1.0## Installation
Add this role to `requirements.yml`:
```yaml
# requirements.yml
- src: itinerisltd.trellis_flush_rewrite_rules_during_deploy
version: 0.1.0 # Check for latest version!
```Add this role to the [`deploy_finalize_after` hook](https://roots.io/trellis/docs/deploys/#hooks):
```yaml
# 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"
```Note: You should put this role before purging caches, e.g: [trellis-purge-wp-rocket-cache-during-deploy](https://github.com/ItinerisLtd/trellis-purge-wp-rocket-cache-during-deploy), [trellis-purge-kinsta-cache-during-deploy](https://github.com/ItinerisLtd/trellis-purge-kinsta-cache-during-deploy), etc.
## Usage
[Deploy](https://roots.io/trellis/docs/deploys/#example) as usual. No special action needed.
This role executes [`$ wp rewrite flush`](https://developer.wordpress.org/cli/commands/rewrite/flush/) during [Trellis](https://github.com/roots/trellis) deploys.
## FAQs
### It looks awesome. Where can I find some more goodies like this?
- Articles on [Itineris' blog](https://www.itineris.co.uk/blog/)
- More projects on [Itineris' GitHub profile](https://github.com/itinerisltd)
- More plugins on [Itineris' wp.org profile](https://profiles.wordpress.org/itinerisltd/#content-plugins)
- Follow [@itineris_ltd](https://twitter.com/itineris_ltd) and [@TangRufus](https://twitter.com/tangrufus) on Twitter
- Hire [Itineris](https://www.itineris.co.uk/services/) to build your next awesome site### This isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?
Thanks! Glad you like it. It's important to let my boss knows somebody is using this project. Instead of giving reviews on wp.org, consider:
- tweet something good with mentioning [@itineris_ltd](https://twitter.com/itineris_ltd) and [@TangRufus](https://twitter.com/tangrufus)
- star this [Github repo](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy)
- watch this [Github repo](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy)
- write blog posts
- submit pull requests
- [hire Itineris](https://www.itineris.co.uk/services/)## Feedback
**Please provide feedback!** We want to make this library useful in as many projects as possible.
Please submit an [issue](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy/issues/new) and point out what you do and don't like, or fork the project and make suggestions.
**No issue is too small.**## Change Log
Please see [CHANGELOG](./CHANGELOG.md) for more information on what has changed recently.
## Security
If you discover any security related issues, please email [[email protected]](mailto:[email protected]) instead of using the issue tracker.
## Credits
[trellis_flush_rewrite_rules_during_deploy](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy) is a [Itineris Limited](https://www.itineris.co.uk/) project created by [Tang Rufus](https://typist.tech).
Full list of contributors can be found [here](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy/graphs/contributors).
## License
[trellis_flush_rewrite_rules_during_deploy](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy) is licensed under the [MIT License](https://opensource.org/licenses/MIT).
Please see [License File](./LICENSE) for more information.