Permalink
Browse files

Adds "collector_mounting" configuration option.

Collector mounting can now be disabled in config/snowfinch.yml.
If the configuration option is missing, the collector will be mounted
(default).
  • Loading branch information...
1 parent d724c4c commit ffe6032de2adce64d3bea78cce401e7c9f75b701 @jcxplorer committed May 29, 2011
Showing with 17 additions and 19 deletions.
  1. +1 −8 config.ru
  2. +3 −1 config/routes.rb
  3. +13 −10 config/snowfinch.yml
View
@@ -1,11 +1,4 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-
-map "/" do
- run Snowfinch::Application
-end
-
-map "/collector" do
- run Snowfinch::Collector
-end
+run Snowfinch::Application
View
@@ -2,7 +2,9 @@
devise_for :users
- match "/collector" => Snowfinch::Collector
+ unless Snowfinch.configuration[:mount_collector] == false
+ match "/collector" => Snowfinch::Collector
+ end
resources :sites do
member do
View
@@ -1,17 +1,20 @@
development:
- host: "snowfinch.rails.fi:3000"
- collector_uri: "http://snowfinch.rails.fi:3000/collector"
- mailer_sender: "support@snowfinch.net"
+ host: "localhost:3000"
+ collector_uri: "http://localhost:3000/collector"
+ mount_collector: true
+ mailer_sender: "snowfinch@example.com"
mongo_database: "snowfinch"
test:
- host: "snowfinch.rails.fi:3000"
- collector_uri: "http://snowfinch.rails.fi:3000/collector"
- mailer_sender: "support@snowfinch.net"
- mongo_database: "snowfinch_test"
+ host: "localhost:3000"
+ collector_uri: "http://localhost:3000/collector"
+ mount_collector: true
+ mailer_sender: "snowfinch@example.com"
+ mongo_database: "snowfinch"
production:
- host: "nest.snowfinch.net"
- collector_uri: "http://nest.snowfinch.net/collector"
- mailer_sender: "support@snowfinch.net"
+ host: "example.com"
+ collector_uri: "http://example.com/collector"
+ mount_collector: true
+ mailer_sender: "snowfinch@example.com"
mongo_database: "snowfinch"

0 comments on commit ffe6032

Please sign in to comment.