Hello, I am running a new installation of Trellis on Ubuntu 20.10 and and am using Trellis-CLI. I have the instance up and running and have installed the dev-main version of Sage 10 in /site/web/app/themes/testtheme. The issue is the proxy of my domain set in bud.config.js to localhost:3000 isn’t working.
Yes, as noted in my original post. .proxy(‘http://cleantheme.test’); I don’t have any issues running my react apps on localhost:3000 so I know that port isn’t being blocked. I also confirmed the port isn’t already in use.
http://cleantheme.test loads fine, adding :3000 to the url doesn’t help. I’m not sending a 400 header, I’m just running yarn dev. I just tried testing an understrap theme on port 3000 and it’s also failing which leads me to believe the issue is further down the roots stack. Any other suggestions?
Aah, running wget to cleantheme.test tipped me off to conflicting IP addresses assigned in /etc/hosts. I cleaned them up to match my vagrant IP and I’m good to go. Problem resolved. Thanks!!
#::1 wordpress.local #Local Site
127.0.0.1 wordpress.local #Local Site #::1 www.wordpress.local #Local Site #127.0.0.1 www.wordpress.local #Local Site
still no success
bud.config.js
/**
* Target URL to be proxied by the dev server.
*
* This should be the URL you use to visit your local development server.
*/
.proxy(‘http://wordpress.local’)
/**
* Development URL to be used in the browser.
*/
.serve('http://localhost:3000');
I’m facing the same issue in windows. I tried to setup local environment using both Laragon and Local.
But getting the same error with both the setups:
[HPM] Error occurred while proxying request localhost:3000/ to http://good-earth.local/ [ECONNREFUSED]