Giter Site home page Giter Site logo

itinerisltd / trellis_flush_rewrite_rules_during_deploy Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 0.0 11 KB

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

License: MIT License

trellis wordpress ansible-galaxy rewrite-rules

trellis_flush_rewrite_rules_during_deploy's Introduction

trellis_flush_rewrite_rules_during_deploy

Build Status GitHub tag license

Goal

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

Minimum Requirements

Installation

Add this role to requirements.yml:

# 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:

# 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, trellis-purge-kinsta-cache-during-deploy, etc.

Usage

Deploy as usual. No special action needed.

This role executes $ wp rewrite flush during Trellis deploys.

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?

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:

Feedback

Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue 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 for more information on what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

trellis_flush_rewrite_rules_during_deploy is a Itineris Limited project created by Tang Rufus.

Full list of contributors can be found here.

License

trellis_flush_rewrite_rules_during_deploy is licensed under the MIT License. Please see License File for more information.

trellis_flush_rewrite_rules_during_deploy's People

Contributors

codepuncher avatar tangrufus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

trellis_flush_rewrite_rules_during_deploy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.