Installing Trellis


Make sure all dependencies have been installed before moving on:


The recommended directory structure for a Trellis project looks like:      # → Root folder for the project
├── trellis/      # → Your clone of this repository
└── site/         # → A Bedrock-based WordPress site
    └── web/
        ├── app/  # → WordPress content directory (themes, plugins, etc.)
        └── wp/   # → WordPress core (don't touch!)

See a complete working example in the repo.

  1. Create a new project directory:
$ mkdir && cd
  1. Clone Trellis:
$ git clone --depth=1 && rm -rf trellis/.git
  1. Clone Bedrock:
$ git clone --depth=1 site && rm -rf site/.git
  1. Install the Ansible Galaxy roles:
$ cd trellis && ansible-galaxy install -r requirements.yml

Windows user? Read the Windows docs for slightly different installation instructions. VirtualBox is known to have poor performance in Windows — use VMware or see some possible solutions.