Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. How best to deploy a WebAssembly app
Forum Updated to NodeBB v4.3 + New Features

How best to deploy a WebAssembly app

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 2 Posters 692 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • idlefrogI Offline
    idlefrogI Offline
    idlefrog
    wrote on last edited by idlefrog
    #1

    Let's say I can't host a server on my own machine that people can connect to.

    Could I instead deploy a WebAssembly app to another machine by sharing files?
    That is you copy the files to machine M:

    app.html	HTML container
    qtloader.js	JS API for loading Qt apps
    app.js	        JS API for loading Qt apps
    app.wasm    	emscripten app binary
    

    Then start up a local server on machine M with:

    python3 -m http.server
    

    But why does that not work? Does the server need emrun installed?
    With a simple Qt helloworld, I get the error message:

    TypeError: NetworkError when attempting to fetch resource.
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You need a server that is configured to serve these 4 files. A small nginx should be enough.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • idlefrogI Offline
        idlefrogI Offline
        idlefrog
        wrote on last edited by
        #3

        @SGaist said in How best to deploy a WebAssembly app:

        nginx

        Thank you!...Am a complete beginner. Just the help I needed! I'll try out nginx or something akin. :)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved