From 7ef94e36cb2d6cfe166a1e2301ec27961daa0368 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Tue, 2 Jun 2015 10:23:11 -0300 Subject: [PATCH] [Colab] Colab environment --- config/database.yml.sample | 4 ++++ config/environments/colab.rb | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ config/secrets.yml | 3 +++ 3 files changed, 57 insertions(+), 0 deletions(-) create mode 100644 config/environments/colab.rb diff --git a/config/database.yml.sample b/config/database.yml.sample index a032a54..3f65040 100644 --- a/config/database.yml.sample +++ b/config/database.yml.sample @@ -14,6 +14,10 @@ test: &test <<: *default database: db/test.sqlite3 +colab: + <<: *default + database: db/colab.sqlite3 + production: <<: *default database: db/production.sqlite3 diff --git a/config/environments/colab.rb b/config/environments/colab.rb new file mode 100644 index 0000000..ea27a8b --- /dev/null +++ b/config/environments/colab.rb @@ -0,0 +1,50 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # In the development environment your application's code is reloaded on + # every request. This slows down response time but is perfect for development + # since you don't have to restart the web server when you make code changes. + config.cache_classes = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports and disable caching. + config.consider_all_requests_local = true + config.action_controller.perform_caching = false + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + # Print deprecation notices to the Rails logger. + config.active_support.deprecation = :log + + # Raise an error on page load if there are pending migrations. + config.active_record.migration_error = :page_load + + # Debug mode disables concatenation and preprocessing of assets. + # This option may cause significant delays in view rendering with a large + # number of complex assets. + config.assets.debug = true + + # Asset digests allow you to set far-future HTTP expiration dates on all assets, + # yet still be able to expire them through the digest params. + config.assets.digest = true + + #Root URL for ActionMailer + config.action_mailer.default_url_options = { :host => 'localhost:3000' } + + # Enables page caching + config.action_controller.perform_caching = true + + # Adds additional error checking when serving assets at runtime. + # Checks for improperly declared sprockets dependencies. + # Raises helpful error messages. + config.assets.raise_runtime_errors = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Responds on a subdirectory + config.relative_url_root = '/mezuro' +end diff --git a/config/secrets.yml b/config/secrets.yml index afce183..0365ccb 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -16,6 +16,9 @@ development: test: secret_key_base: 3dca9eabe30fd729be04dbd035fca4774072d0cf9307d1dd93630e6dc27d72edde2ff4b9b027199b446ce9978b4f14acd6b6ee112ac05bf187bb2058ec31dc12 +colab: + secret_key_base: 029b9846c192ccef25fa4c88c7ee12b80d04ca8a1a8bfce2585dfa4daf1f2b6d695a74575828372b8936fd655345d1a1f2f4e4ec93f81fd0bd59bb22c1481a0f + # Do not keep production secrets in the repository, # instead read values from the environment. production: -- libgit2 0.21.2