Ansible-powered LEMP stack for WordPress
Trellis is an open source project and completely free to use.
However, the amount of effort needed to maintain and develop new features and products within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider sponsoring Roots.
Ansible playbooks for setting up a LEMP stack for WordPress.
Trellis will configure a server with the following and more:
See the full installation docs for requirements.
Create a new project:
$ trellis new example.com
Start the Vagrant virtual machine:
$ trellis up
Read the local development docs for more information.
A base Ubuntu 18.04 (Bionic) or Ubuntu 20.04 (Focal LTS) server is required for setting up remote servers.
group_vars/<environment>/vault.yml(see the Vault docs for how to encrypt files containing passwords)
group_vars/all/users.yml(see the SSH Keys docs)
Provision the server:
$ trellis provision production
Or take advantage of its Digital Ocean support to create a Droplet and provision it in a single command:
$ trellis droplet create production
Read the remote server docs for more information.
repo(Git URL) of your Bedrock WordPress project in the corresponding
branchyou want to deploy (defaults to
Deploy a site:
$ trellis deploy <environment> <site>
Rollback a deploy:
$ trellis rollback <environment> <site>
Read the deploys docs for more information.
Assuming you're using the standard project structure, you just need to make the project trellis-cli compatible by initializing it:
$ trellis init
Keep track of development and community news.