Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Can't change URL of dev server #2546

Closed
3 tasks done
cawa-93 opened this issue Jan 12, 2024 · 3 comments
Closed
3 tasks done

[bug] Can't change URL of dev server #2546

cawa-93 opened this issue Jan 12, 2024 · 3 comments
Labels
invalid This doesn't seem right

Comments

@cawa-93
Copy link
Contributor

cawa-93 commented Jan 12, 2024

Agreement

Describe the issue

In config I call

    app
        .setUrl(new URL(`http://example.test`))
        .watch(['web/app/themes/your-theme-name/resources/views', 'app']);

Expected Behavior

Dev server starts normally. When you visit the page, the bud tries to request http://example.test/bud/hot to get updates

Actual Behavior

Bud show error:

$ bud dev
2024-01-12T16:40:40.146758137Z 
2024-01-12T16:40:40.146779248Z BudError
2024-01-12T16:40:40.146785169Z 
2024-01-12T16:40:40.146792042Z ✘ options.port should be >= 0 and < 65536. Received type number (NaN).
2024-01-12T16:40:40.146800588Z 
2024-01-12T16:40:40.146806940Z ℹ Stack trace
2024-01-12T16:40:40.146813342Z 
2024-01-12T16:40:40.146819714Z │  at BuildDevelopmentCommand.catch
2024-01-12T16:40:40.146824694Z │ (./node_modules/@roots/bud/lib/cli/commands/index.js:186:30)
2024-01-12T16:40:40.146829603Z │  at ./node_modules/clipanion/lib/advanced/Cli.js:229:102
2024-01-12T16:40:40.146834512Z │  at async Cli.run (./node_modules/clipanion/lib/advanced/Cli.js:229:24)
2024-01-12T16:40:40.146839692Z │  at async Cli.runExit (./node_modules/clipanion/lib/advanced/Cli.js:238:28)
2024-01-12T16:40:40.146844391Z │  at async ./node_modules/@roots/bud/lib/cli..js:133:1
2024-01-12T16:40:40.146850092Z 
2024-01-12T16:40:41.893795702Z 
2024-01-12T16:40:41.893841910Z ╭ sage [868ac996ccbad407]                ./web/app/themes/your-theme-name/public
2024-01-12T16:40:41.893851007Z │
2024-01-12T16:40:41.893857640Z │ app
2024-01-12T16:40:41.893863902Z │  ◯ js/runtime.js                                                    ✔ 12.53 kB
2024-01-12T16:40:41.893870825Z │  ◯ js/app.js                                                        ✔ 164.1 kB
2024-01-12T16:40:41.893877307Z │
2024-01-12T16:40:41.893883279Z ╰ 1s 729ms 101 modules [0/101 modules cached]
2024-01-12T16:40:41.893889490Z 
2024-01-12T16:40:41.893895462Z  Network
2024-01-12T16:40:41.893901653Z 
2024-01-12T16:40:41.893907675Z  › Dev    ┄ http://example.test/
2024-01-12T16:40:41.893914037Z           ┄ http://172.20.0.3/
2024-01-12T16:40:41.931130134Z mv: cannot stat 'theme.json': No such file or directory

When you visit the page, the bud tries to request http://<current domain>/bud/hot to get updates

Steps To Reproduce

Project here - https://github.com/cawa-93/lando-wp/tree/wp-bedrock-sage
Run lando start

version

6.20.0

Logs

No response

Configuration

No response

Relevant .budfiles

No response

@cawa-93 cawa-93 added the bug Something isn't working label Jan 12, 2024
@retlehs
Copy link
Member

retlehs commented Jan 12, 2024

Please use https://discourse.roots.io/ for support requests

@retlehs retlehs closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2024
@retlehs retlehs added invalid This doesn't seem right and removed bug Something isn't working labels Jan 12, 2024
@cawa-93
Copy link
Contributor Author

cawa-93 commented Jan 12, 2024

@retlehs It's not support request 😆
It's literally error on docs example:

bud.setUrl(new URL(`http://example.test`))

@retlehs
Copy link
Member

retlehs commented Jan 12, 2024

Getting support with how to configure Bud correctly with Bedrock, Sage, and Lando shouldn't be done on this issue tracker

Our Discourse has at least a couple of examples from folks who have already shared how to do this, for example https://github.com/rkaalma/roots-lando-bedrock-sage-bud-example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants