Roots Issue #7: What to do when your Theme styles on Staging or Production are broken.

Disclaimer: First of all, if you don’t realize that there are possibly many causes for this type of issue, you probably need more experience in website development in general. Particularly mastering HTML and CSS.

 

Today, I deployed a site to Staging. This means that I:

  1. Opened Terminal on my Mac / Linux Ubuntu machine.
  2. Executed cd ~/Sites/my-site/trellis
  3. Executed ./bin/deploy.sh staging mysite.theportlandcompany.com

But upon visiting mysite.theportlandcompany.com I discovered the styles were broken. At first, I though this was because my database export didn’t have the updated URL and site path. Which was not the case.

I believe this is a bug with the deploys somehow, because I’ve deployed several other sites and don’t recall being required to take any extra steps.

 

The Solution (Hack)

  1. Navigate to trellis/deploy-hooks/build-before.yml
  2. Uncomment lines 24-30 which should be:

– name: Copy project local files
synchronize:
src: “{{ project_local_path }}/web/app/themes/le-d-bug-boutique/dist”
dest: “{{ deploy_helper.new_release_path }}/web/app/themes/le-d-bug-boutique”
group: no
owner: no
rsync_opts: –chmod=Du=rwx,–chmod=Dg=rx,–chmod=Do=rx,–chmod=Fu=rw,–chmod=Fg=r,–chmod=Fo=r

Categories: Bedrock
  • Generic selectors
    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
    New Products or Services
    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
    Web Hosting
    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




    Debunking and Demystifying Bid Adjustments and Max CPC in Google AdWords

    Debunking and Demustifying Bid Adjustments and Max CPC in Google AdWords

    Categories: AdWords, Pay Per Click Management, Search Marketing

    A client recently asked us this question: “I was looking over our Google AdWords campaign and noticed we are no longer being charged around $X a click but $X more per click. And then on the ad groups some terms are even more per click. Is there a way to bring down the cost per […]

    Continue Reading »

    Img

    What should I pay for Google AdWords management?

    Categories: AdWords, Pay Per Click Management

    If you’re investigating hiring a company to manage your advertising on Google AdWords (and other platforms) then this article was written specifically to help you understand the typical pricing models and the pros and cons. This article specifically talks about Google AdWords, but it really can apply to other platforms like Facebook Advertising, Instagram Advertising, […]

    Continue Reading »

    Img

    What is professional logo design?

    Categories: Uncategorized

    These days, it’s easy to create your own logo or remotely hire individuals for as little as $5. Yet, some agencies still charge hundreds, or thousands of dollars to create them. Why is this? And which one should I choose?   Shorter Answer Regardless of who you hire here’s what you should get: A horizontal […]

    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