Skip to content

Serving an app with basic interactivity fails #270

@cstjean

Description

@cstjean

(Disclaimer: this is one of those "This is so simple it can't possibly be a bug; I must be doing something wrong" issue, but since discourse had nothing to say, I'm reporting it here)

This simple code:

using Bonito, Bonito.Observables
import Bonito.TailwindDashboard as D

app = App(DOM.div(D.Slider("nsamples", 1:200, value=100)), title="hello world")

port = 9384
url = "0.0.0.0"
server = Bonito.Server(app, url, port)

Works fine on http://localhost:9384/

image

but the interactivity fails and the visual aspect is off on http://my_ip:9384

image

@etpinard reports that

image

pops up in the dev tools. When served, the app should not look up anything in localhost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions