Static file serving, yaaaay.

This commit is contained in:
Dan Buch 2012-06-15 00:32:06 -04:00
parent 4139c5726c
commit d83fcbe9c5
2 changed files with 10 additions and 1 deletions

View File

@ -19,4 +19,7 @@ clean:
rm -vf $(ALL) rm -vf $(ALL)
.PHONY: all clean serve:
rackup ./config.ru
.PHONY: all clean serve

6
math-replay/config.ru Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env rackup
use Rack::ContentLength
root = File.expand_path('./algebra', File.dirname(__FILE__))
app = Rack::Directory.new(root)
puts "Serving #{root} (see --help for options)"
run app