Skip to content

Simple Sinatra app to serve files from a list, one at a time

Notifications You must be signed in to change notification settings

nogara/server_rotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server_rotate

What is it?

server_rotate is a very simple server in Sinatra that gets a list of files and serve them, one at a time.

Usage

Put n files inside the "files" folder. The first time that you run the server and access the "/" route, the server will create a YAML file inside the "cache" folder. From then on, it will use this "database" to keep track of which file it will server next.

After the last file, the server will wrap around and start all over again with the first file.

About

Simple Sinatra app to serve files from a list, one at a time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages