Skip to content

Commit

Permalink
docs(usage): Update another cobalt-serve reference
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jul 10, 2024
1 parent d4c943d commit 0e480e9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ $ cobalt init myBlog

### serve

Serve your site at `127.0.0.1:3000`
To serve your site locally, run:
```console
$ cobalt serve
$ # Include drafts
$ cobalt serve --drafts
Building from `.` into `/tmp/.tmpgYpScM`
Watching . for changes
Serving /tmp/.tmpgYpScM through static file server
Server Listening on http://localhost:1024
Ctrl-c to stop the server
```
This provides live reload; it will re-generate your site as you add or change content.

Use the `--host` argument to listen on a different address (ex. 0.0.0.0/INADDR\_ANY);
the default is `localhost`. Use `--port` (or `-P`) to listen on a different TCP port
number (default: 3000).
the default is `localhost`. Use `--port` (or `-P`) to listen on a specific TCP port
number.

### new

Expand Down

0 comments on commit 0e480e9

Please sign in to comment.