Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
3 changed files
with
17 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,11 +1,4 @@ | |||
# This file is used by Rack-based servers to start the application. | # This file is used by Rack-based servers to start the application. | ||
|
|
||
require ::File.expand_path('../config/environment', __FILE__) | require ::File.expand_path('../config/environment', __FILE__) | ||
|
run Snowfinch::Application | ||
map "/" do | |||
run Snowfinch::Application | |||
end | |||
|
|||
map "/collector" do | |||
run Snowfinch::Collector | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,17 +1,20 @@ | |||
development: | development: | ||
host: "snowfinch.rails.fi:3000" | host: "localhost:3000" | ||
collector_uri: "http://snowfinch.rails.fi:3000/collector" | collector_uri: "http://localhost:3000/collector" | ||
mailer_sender: "support@snowfinch.net" | mount_collector: true | ||
mailer_sender: "snowfinch@example.com" | |||
mongo_database: "snowfinch" | mongo_database: "snowfinch" | ||
|
|
||
test: | test: | ||
host: "snowfinch.rails.fi:3000" | host: "localhost:3000" | ||
collector_uri: "http://snowfinch.rails.fi:3000/collector" | collector_uri: "http://localhost:3000/collector" | ||
mailer_sender: "support@snowfinch.net" | mount_collector: true | ||
mongo_database: "snowfinch_test" | mailer_sender: "snowfinch@example.com" | ||
mongo_database: "snowfinch" | |||
|
|
||
production: | production: | ||
host: "nest.snowfinch.net" | host: "example.com" | ||
collector_uri: "http://nest.snowfinch.net/collector" | collector_uri: "http://example.com/collector" | ||
mailer_sender: "support@snowfinch.net" | mount_collector: true | ||
mailer_sender: "snowfinch@example.com" | |||
mongo_database: "snowfinch" | mongo_database: "snowfinch" |