Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit ffe6032de2adce64d3bea78cce401e7c9f75b701 1 parent d724c4c
@jcxplorer authored
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
9 config.ru
@@ -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
4 config/routes.rb
@@ -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
23 config/snowfinch.yml
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.