Roots Example Project does not load https://roots-example-project.test/ http://localhost:3000/

Followed Roots Example Project to a T but dev site doesn’t load. Used all of the example URLs, theme names etc.

Error for https://roots-example-project.test

ERR_CONNECTION_TIMED_OUT

Really really want to get this setup working so any help much appreciated.

yarn start runs whether Vagrant is up or not.

Let me know if there’s anything else i can check / debug.

themes/sage/resources/assets/config.json

{
  "entry": {
    "main": [
      "./scripts/main.js",
      "./styles/main.scss"
    ],
    "customizer": [
      "./scripts/customizer.js"
    ]
  },
  "publicPath": "/app/themes/sage",
  "devUrl": "https://roots-example-project.test",
  "proxyUrl": "http://localhost:3000",
  "cacheBusting": "[name]_[hash:8]",
  "watch": [
    "app/**/*.php",
    "config/**/*.php",
    "resources/views/**/*.php"
  ]
}

vagrant up messages
I can ssh into grant machine if that would be of use for debugging.

==> default: Machine 'default' has a post `vagrant up` message. This is a message
==> default: from the creator of the Vagrantfile, and not from Vagrant itself:
==> default:
==> default: Your Trellis Vagrant box is ready to use!
==> default: * Composer and WP-CLI commands need to be run on the virtual machine
==> default:   for any post-provision modifications.
==> default: * You can SSH into the machine with `vagrant ssh`.
==> default: * Then navigate to your WordPress sites at `/srv/www`
==> default:   or to your Trellis files at `/home/vagrant/trellis`.

wordpress_sites.yml
Default content from roots example project. Not sure if this need editing or not?

wordpress_sites:
  example.com:
    site_hosts:
      - canonical: roots-example-project.com
        redirects:
          - www.roots-example-project.test
    local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
    admin_email: admin@roots-example-project.test
    multisite:
      enabled: false
    ssl:
      enabled: false
      provider: self-signed
    cache:
      enabled: false

I think you missed step 2 and still need to update the details in development/wordpress_sites.yml to be

wordpress_sites:
  roots-example-project.com:
    site_hosts:
      - canonical: roots-example-project.test
        redirects:
          - www.roots-example-project.test

These are the details used to set up the Vagrant box, so currently it’s probably serving your demo at example.test. I guess you’ll need to re-provision with vagrant provision.

1 Like

thanks - will try. I was following the repo instructions which doesn’t mention wordpress_sites.yml.

ok - so tried the above. Stopped & started vagrant & ran vagrant provision. Stopped started again.

Still no site loading. mmm.

ran
vboxmanage list vms

"<inaccessible>" {66976e2b-c971-4e72-910c-763dda2871c6}
"learn-trellis_default_1560265113593_48611" {71da10af-0bf7-4120-91cf-452fb5e9cf2c}
"example2.text" {22bd4eb6-f9e5-4c97-80e4-5904a6a3b66a}
"roots-example-project.com" {bda8fad9-e723-48a6-8ea3-0339101f07d6}
"example.test" {20f98028-df64-4eb5-8c25-58ea1381f4e8}

if it helps.
I do have a working vagrant for examples.test just not sure how that one works and keen to get the roots system working.

.env

DB_HOST='localhost'
DB_NAME='example_com_development'
DB_PASSWORD='example_dbpassword'
DB_USER='example_com'
DB_USER_HOST='localhost'
DISABLE_WP_CRON='True'
DOMAIN_CURRENT_SITE='roots-example-project.com'
WP_ENV='development'
WP_HOME='http://roots-example-project.com'
WP_SITEURL='http://roots-example-project.com/wp'

Check your hosts file, Vagrant sets up some stuff in there, and sometimes doesn’t clear it out or update it. Also double check the IP address that your other vagrant install is on.

1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.