Skip to content

Commit

Permalink
fix: add config for heroku:redis
Browse files Browse the repository at this point in the history
  • Loading branch information
garussell committed Oct 22, 2023
1 parent e2d8ba3 commit 4b853dd
Show file tree
Hide file tree
Showing 10 changed files with 5,295 additions and 705 deletions.
7 changes: 6 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ class Application < Rails::Application
config.load_defaults 7.0

# Configuration for the application, engines, and railties goes here.
#
config.active_job.queue_adapter = :sidekiq
config.active_job.queue_name_prefix = Rails.env
config.active_job.queue_name_delimiter = '_'

config.assets.enabled = true

# These settings can be overridden in specific environments using the files
# in config/environments, which are processed later.
#
Expand Down
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
# config.assets.css_compressor = :sass

# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false

config.assets.compile = true
config.assets.compress = false
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.asset_host = "http://assets.example.com"

Expand Down
11 changes: 9 additions & 2 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Sidekiq.configure_server do |config|
# config.redis = { url: 'redis://localhost:6379/0' }
# end

# Sidekiq.configure_client do |config|
# config.redis = { url: 'redis://localhost:6379/0' }
# end
Sidekiq.configure_server do |config|
config.redis = { url: 'redis://localhost:6379/0' }
config.redis = { url: ENV['REDIS_URL'], network_timeout: 5 }
end

Sidekiq.configure_client do |config|
config.redis = { url: 'redis://localhost:6379/0' }
config.redis = { url: ENV['REDIS_URL'], network_timeout: 5 }
end
2 changes: 1 addition & 1 deletion coverage/.last_run.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"result": {
"line": 96.0
"line": 96.14
}
}
Loading

0 comments on commit 4b853dd

Please sign in to comment.