Skip to content

zjuapler/file-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Static Server

This is file server writen by golang.

http-watcher的简化版,除去了其他东西,只保留了文件服务器的东西。

  1. 支持地址的二维码
  2. 资源文件打包进到二进制文件

build

	go get -u github.com/jteeuwen/go-bindata/...
	go clone https://github.com/codeskyblue/file-server
	go build  # you may want to copy file-server binary to $PATH for easy use. prebuilt binary comming soon

Usage

file-server -port 8000 -root /your/code/root

file-server ARGS  # acceptable args list below, -h to show them

	-port=8000: Which port to listen
	-private=false: Only listen on lookback interface, otherwise listen on all interface
	-root=".": the HTTP File Server's root directory

可用的下载有linux和windows两个。从github上下载

demo

Thanks

  1. https://github.com/shenfeng/http-watcher

About

File Static Server written by golang.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 100.0%