Permalink
Browse files

extra gems required for risingcode, Rack::Static middleware, still wo…

…rking on camping fix
  • Loading branch information...
1 parent 082bf71 commit a554dea11692735bca60a8e35de3525df6b5a3a8 @diclophis committed Feb 15, 2010
Showing with 7 additions and 3 deletions.
  1. +1 −1 camping_response_headers_fix.rb
  2. +4 −2 config.ru
  3. +2 −0 install_gems.sh
@@ -7,7 +7,7 @@ def initialize(app)
def call(env)
res = @app.call(env)
- res[1]["Set-Cookie"] = JSON.dump(res[1]["Set-Cookie"])
+ res[1]["Set-Cookie"] = JSON.dump(res[1]["Set-Cookie"]) if res[1]["Set-Cookie"]
res
end
end
View
@@ -2,16 +2,18 @@
HOME = "/home/ubuntu"
-require "cloud_collect"
require "camping_response_headers_fix"
-require HOME + "/risingcode/risingcode"
map "http://cloudcollect.com/" do
+ require "cloud_collect"
use CampingResponseHeadersFix
run Rack::Adapter::Camping.new(CloudCollect)
end
map "http://risingcode.com/" do
+ require HOME + "/risingcode/risingcode"
+ require HOME + "/risingcode/boot"
use CampingResponseHeadersFix
+ use Rack::Static, :urls => ["/stylesheets", "/images"], :root => HOME + "/risingcode/public"
run Rack::Adapter::Camping.new(RisingCode)
end
View
@@ -16,3 +16,5 @@ gem install hpricot
gem install plist
gem install ruby-openid
gem install json
+gem install mysql -- --with-mysql-config
+gem install unicorn

0 comments on commit a554dea

Please sign in to comment.