Search Unity

[WebGL/pebkac] launch url after build != template/index.html

Discussion in 'Web' started by mnml_, Jul 21, 2015.

  1. mnml_

    mnml_

    Joined:
    Jun 17, 2015
    Posts:
    44
    unity starts a web-server post-build and launches my browser pointed there, i think it's a random high-port something like http://localhost:54321/

    it serves the correct application, but not loaded with the index.html in my template

    i can open file://path/to/output/index.html and everything works ok, but i'd like that localhost:xxx serves it in the first place...
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    This is odd, Unity should just host whatever files are in the folder it builds. Maybe your browser is caching something (it shouldn't though, the local server should disable caching)?
     
  3. mnml_

    mnml_

    Joined:
    Jun 17, 2015
    Posts:
    44
    my fault, browser remembered the zoom-level (ctrl+mousewheel) for the domain "localhost" that made it look completely different....