My First Time with Roots’ Trellis + Bedrock + Sage

This article was written to document some of the specific challenges I had that other’s using Roots’ Trellis + Bedrock + Sage may experience as well. My hope is that anyone who gets stuck will be able to save themselves the many hours it cost me to track down these solutions and understand precisely why they happened in the first place.

 

Backstory (Skip if you don’t care)

Despite Roots always being an extremely advanced and, from my perspective, complicated system – I simply could never deny that it was a tremendous step forward for the WordPress community and something that the WordPress Core should adopt (or some variation thereof).

 

Starting Over

Like when you’re playing SimCity and you get in so deep that trying to re-lay your streets and plumbing and electricity would bankrupt you… sometimes you just need to start over.

In the case of Trellis, you just navigate to ~/path/to/your/site/trellis and then execute vagrant destroy

If you need to delete the entire site as well, you can your site folder and that’s starting over completely fresh.

 

Subtle Issues

Error: Vagrant error: NFS is reporting that your exports file is invalid

In my case, and others from what I’ve read, this occurs when you have already run a particular Vagrant command. I don’t know precisely what that command is, but I know it occurs at some point after you execute `vagrant up` command.

Solution: sudo nano /etc/exports/ - Then delete the contents of the file and save.

 

 

Error: `The conditional check ‘site_uses_local_db and item.value.db_create |default(True)’ failed. The error was: error while evaluating conditional(site_uses_local_db and item.value.db_create | default(True)): {{site_env.db_host == ‘localhost’ }}: {{ wordpress_env_defaults |combine(item.value.env | default({}), vault_wordpress_sites[item.key].env)}}: ‘dict object’ has no attribute u’example.dev’`

Solution: https://github.com/roots/trellis/issues/587

Categories: Bedrock, Roots, Sage Theme, Trellis, Uncategorized
  • Exact matches only
    Search in title
    Search in content
    Search in posts
    Search in pages
    Filter by Categories
    10
    8.1
    AdWords
    Analytics
    Apple
    Bedrock
    Blade
    Business Development
    Company News
    Content Marketing
    Freelancing
    Gaming
    Linux
    Mac
    Operating Systems
    OS X
    Pay Per Click Management
    Paypal
    PHP
    Press Releases
    Programming
    Razer
    Reviews
    Roots
    Sage Theme
    Search Engine Marketing
    Search Engine Optimization
    Search Marketing
    Tips and Tricks
    Trellis
    Tutorials
    Ubuntu
    Uncategorized
    Video Production
    Website Development
    Website Development
    Windows
  • Recent Posts

  • Categories

  • Would You Like a Quick Call?

    We're happy to spend 30 minutes answering any of your questions and showing you the first steps to make your business "add up".

    From Our Blog




    The First 5 Things You Should Know When Using ‘Screen’

    Categories: Uncategorized

    What is screen? screen is program that allows you to use multiple windows (virtual VT100 terminals) in Unix. In other words, instead of having a bunch of tabs open in Terminal to do different things at the same time you can run the commands below to show and hide them.   How to use screen? […]

    Continue Reading »

    Roots Error #1 – Failed to connect to the host via ssh: Permission denied (publickey).

    Categories: Bedrock, Roots, Trellis

    Earlier this year we began using Roots’ Trellis, Bedrock and Sage to develop and manage websites. While the system is everything WordPress should be. There are some things it should not be. One of them is temperamental, another is incredibly complicated. Today I’m working on our third project with Roots. But simultaneously with our second and […]

    Continue Reading »

    Roots Error #103 – ERROR! Invalid vars plugin version from /Users/myusers/Sites/mysite.com/trellis/lib/trellis/plugins/vars/version.py

    Categories: Bedrock, PHP, Programming, Roots, Sage Theme, Trellis

    Aaaand we’re back. If you saw or read my previous two articles, those were related to project #2. This article, however, is related to project #3.   The Problem I created the site and successfully worked on it on my Linux Ubuntu machine. I successfully deployed my work from development to staging went to bed. And then […]

    Continue Reading »

    About

    Since 2005 we've been offering digital and content marketing strategy and implementation. Including website development, search engine optimization and marketing, search marketing and more.

    Continue Reading »

    Contact

    Email

    us@theportlandcompany.com

    Phone

    503-567-9561

    Follow

  • Logo for The Portland Company with a Coyote