Permalink
Browse files

add offline mode to risingcode

  • Loading branch information...
1 parent 112f8da commit ee770e934f7f6dcbe8a8694d7d974911e7984fd9 @diclophis committed Apr 13, 2012
Showing with 13 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +4 −0 config.ru
  3. +8 −0 risingcode.html
View
@@ -0,0 +1 @@
+log/*
View
@@ -2,14 +2,18 @@
HOME = "/home/jbardin"
+
use Rack::Deflater
# require 'rack/cache'
# use Rack::Cache, :default_ttl => 30, :allow_revalidate => false, :allow_reload => false
map "http://risingcode.com/" do
+ require 'rack/contrib'
+ require 'rack/contrib/backstage'
require HOME + "/risingcode.com/risingcode"
require HOME + "/risingcode.com/boot"
+ use Rack::Backstage, "risingcode.html"
use Rack::StaticCache, :urls => ["/favicon.ico", "/stylesheets", "/images", "/javascripts", "/webgl"], :root => HOME + "/risingcode.com/public"
run RisingCode
end
View
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ <title>risingcode.com</title>
+ </head>
+ <body>
+ <h1>oops</h1>
+ </body>
+</html>

0 comments on commit ee770e9

Please sign in to comment.