cncf / cncf.io

☁️♮🏛🚧 The CNCF.io WordPress website
https://cncf.io
MIT License
84 stars 38 forks source link

Get Lando environment to access port 3000 BrowserSync #523

Closed thetwopct closed 2 years ago

thetwopct commented 2 years ago

As discussed on our call, having the gulp watch process running via build on its own proxy site is slow to start, a bit confusing and limiting as it cannot easily be restarted should the process fail without running lando rebuild -y. Would be easier - if its possible - to allow devs to simply run lando npm start which launches gulp / browsersync and have port 3000 accessible from the browser. Can you see if you can get that working? The readme file in the v2022 branch has my latest lando config.

cjyabraham commented 2 years ago

This should work now. Follow the README. Update your .lando.yml. Run lando rebuild -y and then you should be good to run lando npm start in your theme directory.