mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 05:53:16 +00:00
Update cheatsheets
This commit is contained in:
25
live-server
Normal file
25
live-server
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# live-server
|
||||
|
||||
> A simple development HTTP server with live reload capability.
|
||||
> More information: <https://github.com/tapio/live-server>.
|
||||
|
||||
- Serve an `index.html` file and reload on changes:
|
||||
|
||||
`live-server`
|
||||
|
||||
- Specify a port (default is 8080) from which to serve a file:
|
||||
|
||||
`live-server --port={{8081}}`
|
||||
|
||||
- Specify a given file to serve:
|
||||
|
||||
`live-server --open={{about.html}}`
|
||||
|
||||
- Proxy all requests for ROUTE to URL:
|
||||
|
||||
`live-server --proxy={{/}}:{{http:localhost:3000}}`
|
||||
Reference in New Issue
Block a user