Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…rking on camping fix
  • Loading branch information...
commit a554dea11692735bca60a8e35de3525df6b5a3a8 1 parent 082bf71
@diclophis authored
View
2  camping_response_headers_fix.rb
@@ -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
6 config.ru
@@ -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
2  install_gems.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.