-
Notifications
You must be signed in to change notification settings - Fork 8
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
elm-watch beta: CLI gives https:// links by default in Bun #100
Comments
Hi! The printed links are only supposed to be HTTPS links if you have passed in an HTTPS custom server. A quick test right now gave me HTTP links, so it looks like I’m missing something that is different on your computer. |
I can reproduce the behaviour as described by @upsiflu when checking out the repository and following the instructions at lab.allmende.io/libernetes/libernet.es. ghq get https://lab.allmende.io/libernetes/libernet.es
cd ~/src/lab.allmende.io/libernetes/libernet.es
mkdir -p public
asdf plugin add bun
asdf plugin add just
asdf install
bun --bun install
just dev ✅ Dependencies
● Chadtech/elm-bool-extra 2.4.2
● elm-community/maybe-extra 5.3.0
● elm/virtual-dom 1.0.3
● elm/parser 1.1.0
● dillonkearns/elm-markdown 7.0.1
● rtfeldman/elm-hex 1.0.0
● elm-community/list-extra 8.7.0
● stoeffel/set-extra 1.2.3
● stil4m/structured-writer 1.0.3
● elm-community/string-extra 4.0.1
● Fresheyeball/elm-return 7.1.0
● linuss/smooth-scroll 1.1.0
● elm-explorations/test 2.2.0
● elm-community/easing-functions 2.0.0
● pablohirafuji/elm-syntax-highlight 3.5.0
● pzp1997/assoc-list 1.0.0
● turboMaCk/non-empty-list-alias 1.4.0
● elm/project-metadata-utils 1.0.2
● miniBill/elm-unicode 1.1.1
● jfmengels/elm-review 2.13.2
● stil4m/elm-syntax 7.3.2
● edkelly303/elm-any-type-forms 5.0.0
● lue-bird/elm-review-single-use-type-vars-end-with-underscore 2.0.3
● upsiflu/less-ui 2.0.0
✅ Main 0 ms Q | 68 ms T ¦ 4 ms W
📊 server: https://localhost:53205, network: https://10.30.30.9:53205, network: https://100.64.0.7:53205, network: https://172.20.0.1:53205
📊 web socket connections: 0
✅ 10:23:34 Compilation finished in 5.99 s. With $ cat justfile
dev:
cp -R static/* public/
bun run --bun elm-watch hot
… On the contrary to what is printed by the command output, the website will be available on |
Does it happen if you:
|
Yes! Using node instead of bun solved the issue:
Thank you @lydell |
Thanks you for narrowing down the problem! Then it’s either a bun bug, or that we need to find some other way of detecting if we’re running an HTTP or HTTPS server. This is the current check: elm-watch/src/WebSocketServer.ts Line 107 in 583ac2d
|
Interesting find. I will be curious to learn what causes the difference with the two upstreams. |
When I run
elm-watch hot
, it gives mehttps://
links instead ofhttp://
It's just a minor annoyance. I have to change the URL manually to http://, then it works fine. I didn't find any configuration option to force http://.
Console output (with https instead of http):
elm-watch.json:
public/index.html:
The text was updated successfully, but these errors were encountered: