Cycling74 / miraweb

MIT License
138 stars 14 forks source link

Opening custom Xebra interface with localhost, rather than file://etc? #199

Closed thely closed 2 years ago

thely commented 2 years ago

Question is essentially what's in the title. I'm looking at using Miraweb, but only because I'm interested in doing a custom interface on a localhost website that would connect back to Max with Xebra.

While I know mira.frame is important to start the server, all the Xebra-specific examples open the webpage files as file://etc/etc/index.html instead of localhost:8086/etc/index.html. I get that localhost:8086 is occupied by whatever is contained in mira.frame, but opening a webpage through localhost is important for other aspects of the webpage itself, like correctly linking images and using relative urls.

I've tried things like locahost:8086/web/index.html to see if it's possible, but thus far I haven't been able to make this work, partially because I don't actually know what folder the server is running from. Is it possible to open a Xebra-enabled site (not one visually powered by mira.frame) under a localhost URL?

Edit to add: I'm on a Mac, if that helps with folder hierarchy.

thely commented 2 years ago

Somehow in the process of this, I completely forgot that I could just localhost the website separately on a different port, since the Xebra connection doesn't depend on the port of the site matching Max's 8086 if you're not leaning on mira.frame. Leaving this up but closing it in case someone else has the same brain glitch I did!