Skip to content

Commit aa00e2c

Browse files
Johann-Sleo
authored andcommitted
Add information about how to serve a specific path (vercel#548)
* Add information about how to serve a specific path * Fixed usage * Fixed description * Fixed name
1 parent 550a76e commit aa00e2c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ If you prefer, you can also install the package globally using [Yarn](https://ya
2222
yarn global add serve
2323
```
2424

25-
Once that's done, you can run this command inside your project's directory:
25+
Once that's done, you can run this command inside your project's directory...
2626

2727
```bash
2828
serve
2929
```
3030

31+
...or specify which folder you want to serve:
32+
33+
```bash
34+
serve folder_name
35+
```
36+
3137
Finally, run this command to see a list of all available options:
3238

3339
```bash

bin/serve.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const getHelp = () => chalk`
6060
6161
{bold $} {cyan serve} --help
6262
{bold $} {cyan serve} --version
63+
{bold $} {cyan serve} folder_name
6364
{bold $} {cyan serve} [-l {underline listen_uri} [-l ...]] [{underline directory}]
6465
6566
By default, {cyan serve} will listen on {bold 0.0.0.0:5000} and serve the
@@ -83,7 +84,7 @@ const getHelp = () => chalk`
8384
-c, --config Specify custom path to \`serve.json\`
8485
8586
-n, --no-clipboard Do not copy the local address to the clipboard
86-
87+
8788
-u, --no-compression Do not compress files
8889
8990
--no-etag Send \`Last-Modified\` header instead of \`ETag\`

0 commit comments

Comments
 (0)