From a6d1a2a1090006af2b987f29502f29b11e877796 Mon Sep 17 00:00:00 2001 From: Shay Pletcher <4468322+ThePletch@users.noreply.github.com> Date: Sat, 11 Nov 2023 14:06:22 -0500 Subject: [PATCH] cmon --- app/views/home/index.haml | 2 ++ config/environments/development.rb | 1 + config/environments/production.rb | 8 +++----- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/home/index.haml b/app/views/home/index.haml index 4b4767a..e8ae2e1 100644 --- a/app/views/home/index.haml +++ b/app/views/home/index.haml @@ -2,6 +2,8 @@ %p= t('.purpose') .row.align-items-end + .col-md.my-2 + %p= rails_direct_uploads_url .col-md.my-2 %p= t('.rsvp_prompt.full_text', bolded_section: content_tag(:strong, t('.rsvp_prompt.bolded_section'))).html_safe %p.mb-3= t('.secret_info') diff --git a/config/environments/development.rb b/config/environments/development.rb index 5313517..dcff1d8 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -11,6 +11,7 @@ # Show full error reports. config.consider_all_requests_local = true + config.web_console.whitelisted_ips = '192.168.0.0/16' # Enable/disable caching. By default caching is disabled. if Rails.root.join('tmp/caching-dev.txt').exist? diff --git a/config/environments/production.rb b/config/environments/production.rb index cb443ab..d71a3fb 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -4,11 +4,9 @@ # Code is not reloaded between requests. config.cache_classes = true - # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both threaded web servers - # and those relying on copy on write to perform better. - # Rake tasks automatically ignore this option for performance. - config.eager_load = true + # Disabled due to issues with routes getting locked in stale config + # during boot (e.g. not respecting default protocol settings) + config.eager_load = false # Full error reports are disabled and caching is turned on. config.consider_all_requests_local = false