Browse Source

Revert "readme"

This reverts commit 984ac0fa62.
master
Lloyd Brookes 11 years ago
parent
commit
4ed07e27b3
  1. 20
      README.md

20
README.md

@ -21,26 +21,26 @@ $ npm install -g local-web-server
Usage Usage
----- -----
``` ```
ws [--directory|-d <directory>] [--port|-p <port>] [--log-format|-f dev|default|short|tiny]
usage: ws [--directory|-d <directory>] [--port|-p <port>] [--log-format|-f dev|default|short|tiny]
``` ```
From the folder you wish to serve, run: From the folder you wish to serve, run:
<pre>
```sh
$ ws $ ws
serving at <u>http://localhost:8000</u>
</pre>
serving at http://localhost:8000
```
If you wish to serve a different directory, run: If you wish to serve a different directory, run:
<pre>
```sh
$ ws -d ~/mysite/ $ ws -d ~/mysite/
serving <u>/Users/Lloyd/mysite</u> at <u>http://localhost:8000</u>
</pre>
serving ~/mysite at http://localhost:8000
```
If you wish to override the default port (8000), use `--port` or `-p`: If you wish to override the default port (8000), use `--port` or `-p`:
<pre>
```sh
$ ws --port 9000 $ ws --port 9000
serving at <u>http://localhost:9000</u>
</pre>
serving at http://localhost:9000
```
Use a built-in or custom [Connect logger format](http://www.senchalabs.org/connect/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

Loading…
Cancel
Save