Skip to content

kortemy/serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

serve

Dead simple file server.

Instead of configuring nginx or apache to serve me web content from different places, as a developer I find that a nuisance.

Install

You must have Go installed.

$ go get -u github.com/kortemy/serve

Usage

Navigate to the folder you want to server content from:

$ cd ~/projects/secret/notPr0n/web

Serve:

$ serve

Serving from /home/kortemy/projects/secret/notPr0n/web on http://localhost:8080

Open your favorite web browser and go to localhost:8080. That is all.

Configuring

Not to make this only one LoC, you can define a custom port, because... yes.

$ serve -port 80

If there is any conflicting with your other servers.

About

Dead simple file server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages