Skip to content

Commit 294be35

Browse files
committed
updated readme
1 parent 288db85 commit 294be35

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ goserve -h
1616
## Usage
1717
For now, Serve supports just HTML, CSS and Javascript
1818
```bash
19-
goserve // this starts a server on port 3000
19+
goserve # this starts a server on port 3000
2020

21-
// To use a custom port run
21+
# To use a custom port run
2222
goserve -p 5173
2323

24-
// To serve another folder
25-
goserve -root "path-to-folder"
24+
# To serve another folder
25+
goserve -root "/Desktop/my-cool-site/dist"
26+
27+
# goserve -root "/Desktop/my-cool-site/dist/index.html" won't work because the root flag needs a directory to serve not a file
2628
```
2729

2830
For local development, you will need to add this script tag to your html head

0 commit comments

Comments
 (0)