From bea8a1c238796190a068e684e2257d55e3f10a57 Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Fri, 21 Jun 2013 18:35:12 +0100 Subject: [PATCH] readme --- README.md | 15 +++++++++++++-- server.js | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a270912..04858c2 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,20 @@ Usage ----- From the folder you wish to serve, run: ```sh -$ ws [--port|-p ] [--log-format|-f dev|default|short|tiny] +$ ws +serving at http://localhost:8000 +``` + +If you wish to override the default port (8000), use `--port` or `-p`: +```sh +$ ws --port 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`: +```sh +$ ws --log-format short ``` -The default port and log-format are 8000 and "dev", respectively. Use with Logstalgia ------------------- diff --git a/server.js b/server.js index bb7a760..26254e0 100755 --- a/server.js +++ b/server.js @@ -34,5 +34,5 @@ if (!options.valid){ .use(connect.directory(process.cwd())) .listen(options.port); - process.stderr.write("listening on port " + options.port + "\n"); + process.stderr.write("listening at http://localhost:" + options.port + "\n"); }