Hi guys!
I’m trying to start working with roots but am having a little problem getting pass the first configuration.
Currently I have Trellis running, I can access the site via de URL: “http://clientsname.test/”
But when I execute npm start or yarn start the page doesnt load, returning me the error: ERR_EMPTY_RESPONSE on http://localhost:3000/
I can access http://localhost:3001/ tho.
Configurations (Changed the name of the client to ‘clientsname’)
\trellis\group_vars\development\wordpress_sites.yml
wordpress_sites:
clientsname.com.br:
site_hosts:
- canonical: clientsname.test
redirects:
- www.clientsname.test
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
admin_email: admin@clientsname.test
multisite:
enabled: false
ssl:
enabled: false
provider: self-signed
cache:
enabled: false
\site\web\app\themes\ClientsTheme\resources\assets\config.json
{
“entry”: {
“main”: ["./scripts/main.js",
“./styles/main.scss”],
“customizer”: ["./scripts/customizer.js"]
},
“publicPath”: “/app/themes/ClientsTheme”,
“devUrl”: “http://clientsname.test”,
“proxyUrl”: “http://localhost:3000”,
“cacheBusting”: “[name]_[hash:8]”,
“watch”: [“app//*.php",
"config//.php",
"resources/views/**/.php”]
}
To run trellis: On first run I executed the command “vagrant up --provision”, now I only execute “vagrant up”
To run sage: yarn start (After yarn build)