Dev Ops for WordPress Part Three

Trellis

Here are the steps to get up and running with Trellis.

For further information, please visit the Trellis documentation or visit the roots discourse – https://discourse.roots.io/

Local development setup

Create a directory on your local computer, 

mkdir yoursite.com && cd yoursite.com

Make sure you have write permissions to the folder then grab a copy of Trellis from the git repository.

git clone --depth=1 git@github.com:roots/trellis.git && rm -rf trellis/.git

Do the same for Bedrock

git clone --depth=1 git@github.com:roots/bedrock.git site && rm -rf site/.git

Edit the development sites file

trellis/group_vars/development/wordpress_sites.yml

In this file, replace any reference to “example” with the correct name of your site.

Edit the development vault file

trellis/group_vars/development/vault.yml

Again, change example to the correct site name and change any of the development passwords if required.

Change to the trellis directory in your terminal

cd yoursite.com/trellis

then run the vagrant up command

vagrant up

Enter your administrator password when requested. Then sit back and allow the magic to happen. Your dev site will be ready in between 0-10 time units. How does that even work? Well, I’m not going to go into it here, but it does! Most times. Unless you have permission issues or other minor tweaks that need to be made. A bit of googling will normally get things flowing, but drop me a comment if you get any weird errors 🙂

Staging / Production

Leave a Reply

Your email address will not be published. Required fields are marked *