Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 15 lines (12 sloc) 0.476 kB
61d4f41 @tobi dont ask
authored
1 #
2 #
3 # Yea i know it's pathetic to do this through ruby but Heroku is the only place I want to host stuff at this point.
4 #
5 # Yes i don't have a good host for uploading static html files.
6 #
7
8 use Rack::ContentLength
9 use Rack::Static, :root => File.dirname(__FILE__) + '/public', :urls => ["/index.html", '/codemirror', '/javascripts', '/stylesheets']
10
11 app = proc do |env|
12 [ 302, {'Content-Type' => 'text/plain', 'Location' => '/index.html'}, "Redirecting..." ]
13 end
14
15 run app
Something went wrong with that request. Please try again.