Static file serving, yaaaay.
This commit is contained in:
parent
4139c5726c
commit
d83fcbe9c5
@ -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
6
math-replay/config.ru
Executable 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
|
Loading…
Reference in New Issue
Block a user