This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'sinatra' | |
| # simple script to serve static files from an arbitrary directory via Sinatra | |
| # usage: rserve [/path/to/dir] [port] | |
| # path will default to '.' | |
| pub = File.expand_path(ARGV.shift || '.') | |
| puts "Setting Public to #{pub}" |
NewerOlder