{"id":20742706,"url":"https://github.com/itinerisltd/trellis_flush_rewrite_rules_during_deploy","last_synced_at":"2025-08-24T21:05:28.508Z","repository":{"id":38349207,"uuid":"176780554","full_name":"ItinerisLtd/trellis_flush_rewrite_rules_during_deploy","owner":"ItinerisLtd","description":"Resets WordPress' rewrite rules (based on registered post types, etc) during Trellis deploys","archived":false,"fork":false,"pushed_at":"2022-06-06T15:42:28.000Z","size":11,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T05:16:11.381Z","etag":null,"topics":["ansible-galaxy","rewrite-rules","trellis","wordpress"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ItinerisLtd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-20T17:06:33.000Z","updated_at":"2024-04-04T10:54:39.000Z","dependencies_parsed_at":"2022-08-24T04:50:39.771Z","dependency_job_id":null,"html_url":"https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Ftrellis_flush_rewrite_rules_during_deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Ftrellis_flush_rewrite_rules_during_deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Ftrellis_flush_rewrite_rules_during_deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Ftrellis_flush_rewrite_rules_during_deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItinerisLtd","download_url":"https://codeload.github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566511,"owners_count":21451234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible-galaxy","rewrite-rules","trellis","wordpress"],"created_at":"2024-11-17T07:07:09.925Z","updated_at":"2025-04-24T05:16:27.068Z","avatar_url":"https://github.com/ItinerisLtd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# trellis_flush_rewrite_rules_during_deploy\n\n[![Build Status](https://travis-ci.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy.svg?token=ptrvJskDR5BKm8thpNdd\u0026branch=master)](https://travis-ci.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy)\n[![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)\n[![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)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [Goal](#goal)\n- [Minimum Requirements](#minimum-requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n- [FAQs](#faqs)\n  - [It looks awesome. Where can I find some more goodies like this?](#it-looks-awesome-where-can-i-find-some-more-goodies-like-this)\n  - [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)\n- [Feedback](#feedback)\n- [Change Log](#change-log)\n- [Security](#security)\n- [Credits](#credits)\n- [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Goal\n\nResets WordPress' rewrite rules (based on registered post types, etc) during [Trellis](https://github.com/roots/trellis) deploys.\n\n## Minimum Requirements\n\n- Trellis [9dfddfd](https://github.com/roots/trellis/commit/9dfddfd0d5f7d10886d2f434c02d3bd23edb8684)\n- Ansible v2.4\n- [WP CLI](https://wp-cli.org/) v2.1.0\n\n## Installation\n\nAdd this role to `requirements.yml`:\n\n```yaml\n# requirements.yml\n- src: itinerisltd.trellis_flush_rewrite_rules_during_deploy\n  version: 0.1.0 # Check for latest version!\n```\n\nAdd this role to the [`deploy_finalize_after` hook](https://roots.io/trellis/docs/deploys/#hooks):\n\n```yaml\n# group_vars/all/deploy-hooks.yml\n# Learn more on https://roots.io/trellis/docs/deploys/#hooks\ndeploy_finalize_after:\n  - \"{{ playbook_dir }}/vendor/roles/itinerisltd.trellis_flush_rewrite_rules_during_deploy/tasks/main.yml\"\n```\n\nNote: 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.\n\n## Usage\n\n[Deploy](https://roots.io/trellis/docs/deploys/#example) as usual. No special action needed.\n\nThis role executes [`$ wp rewrite flush`](https://developer.wordpress.org/cli/commands/rewrite/flush/) during [Trellis](https://github.com/roots/trellis) deploys.\n\n## FAQs\n\n### It looks awesome. Where can I find some more goodies like this?\n\n- Articles on [Itineris' blog](https://www.itineris.co.uk/blog/)\n- More projects on [Itineris' GitHub profile](https://github.com/itinerisltd)\n- More plugins on [Itineris' wp.org profile](https://profiles.wordpress.org/itinerisltd/#content-plugins)\n- Follow [@itineris_ltd](https://twitter.com/itineris_ltd) and [@TangRufus](https://twitter.com/tangrufus) on Twitter\n- Hire [Itineris](https://www.itineris.co.uk/services/) to build your next awesome site\n\n### This isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?\n\nThanks! 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:\n\n- tweet something good with mentioning [@itineris_ltd](https://twitter.com/itineris_ltd) and [@TangRufus](https://twitter.com/tangrufus)\n- star this [Github repo](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy)\n- watch this [Github repo](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy)\n- write blog posts\n- submit pull requests\n- [hire Itineris](https://www.itineris.co.uk/services/)\n\n## Feedback\n\n**Please provide feedback!** We want to make this library useful in as many projects as possible.\nPlease 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.\n**No issue is too small.**\n\n## Change Log\n\nPlease see [CHANGELOG](./CHANGELOG.md) for more information on what has changed recently.\n\n## Security\n\nIf you discover any security related issues, please email [hello@itineris.co.uk](mailto:hello@itineris.co.uk) instead of using the issue tracker.\n\n## Credits\n\n[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).\n\nFull list of contributors can be found [here](https://github.com/ItinerisLtd/trellis_flush_rewrite_rules_during_deploy/graphs/contributors).\n\n## License\n\n[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).\nPlease see [License File](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinerisltd%2Ftrellis_flush_rewrite_rules_during_deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitinerisltd%2Ftrellis_flush_rewrite_rules_during_deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinerisltd%2Ftrellis_flush_rewrite_rules_during_deploy/lists"}