diff --git a/config/environments/production.rb b/config/environments/production.rb index 9b2bfc29b..e94b7a6aa 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -39,7 +39,7 @@ # config.action_cable.mount_path = nil config.action_cable.url = ENV["ACTION_CABLE_URL"] - config.action_cable.allowed_request_origins = ENV["ACTION_CABLE_ALLOWED_ORIGINS"].split(",") + config.action_cable.allowed_request_origins = ENV["ACTION_CABLE_ALLOWED_ORIGINS"]&.split(",") # Assume all access to the app is happening through a SSL-terminating reverse proxy. # Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies. diff --git a/db/seeds.rb b/db/seeds.rb index 8cc2e2cfb..95d77f20b 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -14,13 +14,8 @@ require "faker" -if Rails.env.production? - puts("Seeding is disabled in production.") - exit -end - -if ENV.fetch("SKIP_SEEDS", false) == "true" - puts("Skipping seeding data.") +if ENV.fetch("SKIP_SEEDS", "false") == "true" + puts("Skip seeding. Exiting...") exit end