Commit a9c34b038d170ac7d1df31eb01b26a73eab74a11
Committed by
Diego Camarinha
1 parent
63daa4a8
[Colab] Colab environment
Serve assets on a subdirectory Signed off by: Gustavo Jaruga <darksshades@hotmail.com>
Showing
3 changed files
with
57 additions
and
0 deletions
Show diff stats
config/database.yml.sample
| @@ -14,6 +14,10 @@ test: &test | @@ -14,6 +14,10 @@ test: &test | ||
| 14 | <<: *default | 14 | <<: *default |
| 15 | database: db/test.sqlite3 | 15 | database: db/test.sqlite3 |
| 16 | 16 | ||
| 17 | +colab: | ||
| 18 | + <<: *default | ||
| 19 | + database: db/colab.sqlite3 | ||
| 20 | + | ||
| 17 | production: | 21 | production: |
| 18 | <<: *default | 22 | <<: *default |
| 19 | database: db/production.sqlite3 | 23 | database: db/production.sqlite3 |
| @@ -0,0 +1,50 @@ | @@ -0,0 +1,50 @@ | ||
| 1 | +Rails.application.configure do | ||
| 2 | + # Settings specified here will take precedence over those in config/application.rb. | ||
| 3 | + | ||
| 4 | + # In the development environment your application's code is reloaded on | ||
| 5 | + # every request. This slows down response time but is perfect for development | ||
| 6 | + # since you don't have to restart the web server when you make code changes. | ||
| 7 | + config.cache_classes = false | ||
| 8 | + | ||
| 9 | + # Do not eager load code on boot. | ||
| 10 | + config.eager_load = false | ||
| 11 | + | ||
| 12 | + # Show full error reports and disable caching. | ||
| 13 | + config.consider_all_requests_local = true | ||
| 14 | + config.action_controller.perform_caching = false | ||
| 15 | + | ||
| 16 | + # Don't care if the mailer can't send. | ||
| 17 | + config.action_mailer.raise_delivery_errors = false | ||
| 18 | + | ||
| 19 | + # Print deprecation notices to the Rails logger. | ||
| 20 | + config.active_support.deprecation = :log | ||
| 21 | + | ||
| 22 | + # Raise an error on page load if there are pending migrations. | ||
| 23 | + config.active_record.migration_error = :page_load | ||
| 24 | + | ||
| 25 | + # Debug mode disables concatenation and preprocessing of assets. | ||
| 26 | + # This option may cause significant delays in view rendering with a large | ||
| 27 | + # number of complex assets. | ||
| 28 | + config.assets.debug = true | ||
| 29 | + | ||
| 30 | + # Asset digests allow you to set far-future HTTP expiration dates on all assets, | ||
| 31 | + # yet still be able to expire them through the digest params. | ||
| 32 | + config.assets.digest = true | ||
| 33 | + | ||
| 34 | + #Root URL for ActionMailer | ||
| 35 | + config.action_mailer.default_url_options = { :host => 'localhost:3000' } | ||
| 36 | + | ||
| 37 | + # Enables page caching | ||
| 38 | + config.action_controller.perform_caching = true | ||
| 39 | + | ||
| 40 | + # Adds additional error checking when serving assets at runtime. | ||
| 41 | + # Checks for improperly declared sprockets dependencies. | ||
| 42 | + # Raises helpful error messages. | ||
| 43 | + config.assets.raise_runtime_errors = true | ||
| 44 | + | ||
| 45 | + # Raises error for missing translations | ||
| 46 | + # config.action_view.raise_on_missing_translations = true | ||
| 47 | + | ||
| 48 | + # Responds on a subdirectory | ||
| 49 | + config.relative_url_root = '/mezuro' | ||
| 50 | +end |
config/secrets.yml
| @@ -16,6 +16,9 @@ development: | @@ -16,6 +16,9 @@ development: | ||
| 16 | test: | 16 | test: |
| 17 | secret_key_base: 3dca9eabe30fd729be04dbd035fca4774072d0cf9307d1dd93630e6dc27d72edde2ff4b9b027199b446ce9978b4f14acd6b6ee112ac05bf187bb2058ec31dc12 | 17 | secret_key_base: 3dca9eabe30fd729be04dbd035fca4774072d0cf9307d1dd93630e6dc27d72edde2ff4b9b027199b446ce9978b4f14acd6b6ee112ac05bf187bb2058ec31dc12 |
| 18 | 18 | ||
| 19 | +colab: | ||
| 20 | + secret_key_base: 029b9846c192ccef25fa4c88c7ee12b80d04ca8a1a8bfce2585dfa4daf1f2b6d695a74575828372b8936fd655345d1a1f2f4e4ec93f81fd0bd59bb22c1481a0f | ||
| 21 | + | ||
| 19 | # Do not keep production secrets in the repository, | 22 | # Do not keep production secrets in the repository, |
| 20 | # instead read values from the environment. | 23 | # instead read values from the environment. |
| 21 | production: | 24 | production: |