Roots Issue #11

[Browsersync] Couldn’t open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)

I have built several sites with Roots stack now and suddenly, BrowserSync is no longer working on one of them.

However, BrowserySync is working on all the others. So this suggests to me that there is a configuration I have changed in this particular site. However, I don’t believe I changed any configuration files – if for no other reason than I wouldn’t know which one to modify to impact BrowserSync in any way. So I’ve rechecked the trellis/group_vars files, and trellis/hosts and not found anything unusual. So I tried destroying the VirtualBox with vagrant destroyto see if that reset anything, but I ended up with the same result.

So I’m back to looking for a specific configuration file for BrowserSync that contains the “open” argument in it as specified in the error. I previously modified this before I wrote this article and it didn’t change anything. So I am circling back to that now.

In the end, I found that editing myTheme/node_modules/browser-sync/lib/default-config.js and changing the “open” value to “false” (but without quotes) silenced the error. However it does not open the browser now when I begin gulp watch like it used to. Not a big deal though. But still a problem I want to fix.

  • 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




    Img

    Absolute Beginners Guide to Root’s Trellis + Bedrock + Sage

    Categories: Uncategorized

    I have a knack for hitting every possible obstacle. It stems from the early days of my education and is something I’ve had to hobble through life trying to mitigate. Since the internet though, I’ve found that there are many others like me. So when I try a new technology I am in the habit […]

    Continue Reading »

    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 »

    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