WP Snipp Ninja

How to quickly install Roots Trellis and Bedrock for local development environment on Windows?

Author: Dimitar Radev | Posted on: July 25, 2020 |

Trellis is a LEMP stack for WordPress local development environment. In this short tutorial I will walk you through the installation itself but be sure to check you have the necessary dependencies on your Windows machine, those are explained in the post What do you need to install on your Windows PC for work with Roots Trellis and Bedrock stack.

First, start by creating your project structure. You will need the main folder for your local environment. Name it the same way you intend to name your local site (Examples: /test.test, /project.test).
git clone https://github.com/roots/trellis.git

A folder called trellis will be created in your site.test directory, enter inside, and delete the folder .git. If you can’t see it, it’s hidden. You will need to enable the option from view > show hidden files.
git clone https://github.com/roots/bedrock.git site

Open site directory and delete the folder .git.

In the folder trellis\group_vars\development open wordpress_sites.yml and change the site URL (example.test) to whatever you want it to be for this example we are using site.test. We are using .test TDL because .dev is not available anymore, to go around some possible issues I suggest you keep it to .test.

cd .\trellis\
vagrant up

The estimated waiting time here is ~10-20 minutes depending on your PC.

To speed up the development environment we should instal

vagrant-winnfsd, bindfs and hostmanager you can check how to in our tutorial linked in the description but that is actually pretty easy just type:

vagrant plugin install vagrant-winnfsd vagrant-bindfs vagrant-hostmanager

That’s all,
If you are first time user please check Trellis and Bedrock Documentation or Roots Discourse as this post is meant to be a snippet.

Article keywords

  • About the Author

     Dimitar Radev

    Hey, I'm Dimitar "B1-0S" Radev or D in short. I'm a WordPress Developer for nearly 10 years and I have in-depth knowledge in creating Custom WordPress Themes, Plugins, Commercial Themes Edits, and WooCommerce Storefronts. In the last two years, I'm specializing in Technical SEO for WordPress websites.

    Follow Dimitar Radev on Social Media

    Leave a Reply

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