Browse Source

fix broken link

master
Lloyd Brookes 11 years ago
parent
commit
42573b12c6
  1. 2
      README.md
  2. 8
      ws.js

2
README.md

@ -30,7 +30,7 @@ $ ws --port 9000
serving at http://localhost:9000 serving at http://localhost:9000
``` ```
Use a built-in or custom [Connect logger format](http://www.senchalabs.org/connect/middleware-logger.html) with `--log-format`:
Use a built-in or custom [Connect logger format](http://www.senchalabs.org/connect/logger.html) with `--log-format`:
```sh ```sh
$ ws --log-format short $ ws --log-format short
``` ```

8
ws.js

@ -10,7 +10,7 @@ function halt(message){
console.log(wodge.red("Error ") + message); console.log(wodge.red("Error ") + message);
console.log(usage); console.log(usage);
process.exit(1); process.exit(1);
}
var options = new Thing() var options = new Thing()
.define({ name: "port", alias: "p", type: "number", defaultOption: true, value: 8000 }) .define({ name: "port", alias: "p", type: "number", defaultOption: true, value: 8000 })
@ -55,9 +55,3 @@ if (!options.valid){
process.stderr.write("serving at http://localhost:" + options.port + "\n"); process.stderr.write("serving at http://localhost:" + options.port + "\n");
} }
// open several sites with one command $ ws project1:8000 project2:8100
// store port in package.json, e.g. "ws-port": 9000
// ws -a to open a whole slew of sites stored in json
// ws -o to open in default browser
// ch, ff, op, sa, ca etc. to open in specific browser
Loading…
Cancel
Save