Vagrant virtual machine for development

Trellis uses Vagrant to automatically create a self-contained virtual machine.

Stop cluttering up your host machine with software like MAMP and use the same software you would in production.

Complete WordPress server

You’ll get a complete WordPress server running all the software you need configured according to the best practices.

All of this is powered by Ansible for configuration management.

You don’t have to use brittle and confusing Bash scripts or worry about commands you found to copy and paste. Ansible provides descriptive modules for common tasks.

Provision a remote server and deploy to it with a single command

Trellis is all about development & production parity. What does this mean? Your development virtual machine and your production are as similar as possible.

This gives the confidence to know that if your WordPress site works in development, it will also work in production and you can deploy with confidence.

Trellis 1.0.0-rc.1
Last commit
Merge pull request #894 from roots/remove-h5bp-expires-and-cache-busting Default h5bp expires and cache busting to false
Last updated
September 24, 2017

I’ve been using Trellis for a while with a lot of success. All my sites are hosted on DigitalOcean, so using Trellis + DO means I have perfect parity between my dev and production environments.

James DiGioia

Why Trellis, not VVV? Why Trellis, not MAMP?

Modern LEMP stack

Trellis runs on Ubuntu 16.04 Xenial LTS based servers and installs the following software:

  • Nginx
  • MariaDB (MySQL drop-in replacement)
  • PHP 7.1 (+ extensions)
  • Composer
  • WP-CLI
  • sSMTP
  • Memcached
  • Fail2ban
  • ferm (firewall)
  • Mailhog

A+ SSL support

Our SSL implementation scores an A+ on the Qualys SSL Labs Test.

Automatic Let’t Encrypt integration for a free SSL certificate.

Trellis gives you the best HTTPS configuration with performance optimizations that include:

  • HTTP/2
  • OCSP stapling
  • Strict Transport Security (HSTS) & redirects
  • Strong SSL params (Diffie-Hellman key exchange)
  • Performance tuning

Learn more about SSL in Trellis

SSH keys

Trellis manages your SSH keys so users can easily and securely connect to servers and deploy.

Just configure your usernames and tell Trellis to load local SSH key files or provide a GitHub username and it will automatically add all your public keys.

Learn more about SSH keys in Trellis

Nginx micro-caching

Get the benefits of caching without the hassle of cache invalidation.

Nginx FastCGI “micro” caching can be configured with a toggle and an optional timeframe. Your WordPress site can be “Reddit proof” just by having a 5 second cache.

Learn more about FastCGI caching in Trellis

Subscribe to our newsletter to get the latest Roots updates, along with occasional tips on building better WordPress sites.

Looking for WordPress plugin recommendations, the newest modern WordPress projects, and general web development tips and articles?

Follow @rootswp on Twitter