Skip to content
/ serve Public

Instant backgrounded local hosting for multiple files and folders

Notifications You must be signed in to change notification settings

benvan/serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

serve

Instant, backgrounded local hosting for multiple files and folders.

Requires python

usage

# serve the current directory foo:
serve .
# link copied to clipboard, e.g.
# http://192.168.0.6:3942/foo

# serve some more files...
serve ../bar/file1.txt ../bar/file2.txt
# file1.txt and file2.txt additionally hosted

serve -c
# all served items cleared up

example serve result

installation

place the 'serve' script anywhere exposed by your $PATH, e.g.

git clone https://github.com/benvan/serve.git
sudo ln -s "$(pwd)/serve/serve" /usr/local/bin

configuration

serve automatically copies urls to your clipboard. If you wish to disable this, delete the following line in the serve script:

CLIPBOARD=true

how does this work?

serve starts a python simplehttpserver running out of ~/.pythonserver. Files and folders are then symlinked from that directory as and when you need them.

About

Instant backgrounded local hosting for multiple files and folders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages