website icon indicating copy to clipboard operation
website copied to clipboard

Developer's Guide, Potential Wrong Command Line Example

Open awareness481 opened this issue 8 years ago • 1 comments

Towards the end of the guide, the following example is used to serve the compiled files over http: $ emrun --no_browser --port 8080

However, this didn't work for me and typing emrun in the terminal gives me the following text:

usage: emrun [emrun_options] filename.html [html_cmdline_options]

   where emrun_options specifies command line options for emrun itself, whereas
   html_cmdline_options specifies startup arguments to the program.

Type emrun --help for a detailed list of available options.

To create the localhost I needed to run:

$ emrun --no_browser --port 8080 hello.html

The filename is missing from the command-line example in the Developer's guide, which is needed to create the localhost page from the compiled files.

Developer's Guide: https://github.com/WebAssembly/website/blob/master/getting-started/developers-guide.md

awareness481 avatar Jul 07 '17 21:07 awareness481

I'm not sure if guide had this snippet at the time of your issue, but you might have missed the . at the end, so the command was actually: emrun --no_browser --port 8080 .

ygongdev avatar Aug 30 '17 01:08 ygongdev