A collection of tools to enhance your Roots Trellis workflow and configuration.
A Bash script to safely update your Trellis installation while preserving your custom configurations.
- Creates a backup of your current Trellis directory
- Downloads the latest version of Trellis
- Updates your Trellis files while preserving important configurations
- Commits changes to your Git repository
For detailed usage instructions and information, please refer to the Trellis Updater documentation.
Note: If you prefer not to use the automated shell script, we also provide a manual update guide with step-by-step instructions.
Tools to configure Nginx for optimized image serving, supporting WebP and AVIF formats.
- Automatically serves WebP or AVIF images when browsers support them
- Falls back to traditional formats for older browsers
- Improves page load times and performance scores
The configuration is located in the image-optimization/nginx-includes/webp-avf.conf.j2
file.
For detailed instructions on implementing this in your Trellis project and converting your images to WebP/AVIF formats, please refer to our Image Optimization Guide.
To implement this in your Trellis project:
- Copy the
image-optimization/nginx-includes
directory to your Trellis project - Update your Trellis configuration to include this Nginx configuration
- Run the appropriate provisioning command to apply the changes:
# For production environment trellis provision production # For staging environment trellis provision staging # For development environment trellis provision development
Tools to configure Nginx for optimal browser caching of static assets to improve website performance.
- Configures appropriate cache durations for different file types (images, CSS, JavaScript, fonts)
- Prevents caching of HTML and admin areas to ensure fresh content
- Adds proper cache headers for all static assets
- Improves load times and reduces bandwidth usage for returning visitors
The configuration is located in the browser-caching/nginx-includes/assets-expiry.conf.j2
file.
For detailed instructions on implementing this in your Trellis project and understanding the cache duration settings, please refer to our Browser Caching Guide.
To implement this in your Trellis project:
- Copy the
browser-caching/nginx-includes
directory to your Trellis project - Update your Trellis configuration to include this Nginx configuration
- Run the appropriate provisioning command to apply the changes:
# For production environment trellis provision production # For staging environment trellis provision staging # For development environment trellis provision development
Documentation and commands for managing WordPress migrations, especially when using Trellis and Bedrock.
- Domain migration guides for single-site and multisite installations
- Path conversion from standard WordPress to Bedrock structure
- Best practices for search-replace operations
- Troubleshooting common migration issues
For detailed usage instructions and examples, please refer to the WordPress Migration Guide.
- Git
- Bash
- rsync
MIT License. See LICENSE.md for details.
Copyright © Imagewize