+
Skip to content

alexylon/serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

serve

Serve static directory

Configuration Options

Option Flag Default Value Description
Dir --dir or -d Current directory (.) Specifies the directory path containing static files to serve
Port --port or -p 3030 Specifies the port number on which the server will listen
Help --help or -h Print help
Version --version or -V Print version

Example Usage

# Serve files from the current directory on port 3030 (default)
./serve

# Serve files from a specific directory
./serve --dir /path/to/static/directory

# Serve on a different port
./serve --port 8080

# Combine options
./serve -d /path/to/static/directory -p 8080

About

Simple web server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载