Skip to content

Commit

Permalink
Add gem and instructions for redis caching
Browse files Browse the repository at this point in the history
  • Loading branch information
HHassig committed Jul 8, 2024
1 parent fddb8be commit 0c746ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ group :production do
gem "aws-sdk-s3", require: false
gem "figaro", "~> 1.2"
gem "fog-aws" # to remove once image migration is complete
gem "redis"
end
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ DEPENDENCIES
letter_opener_web (~> 1.3)
listen (~> 3.1)
puma (>= 5.0.0)
redis
rubocop-faker
sentry-rails
sentry-ruby
Expand Down
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,7 @@

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false

# Specify redis cache store
config.cache_store = :redis_cache_store, { url: ENV.fetch("REDIS_URL", nil) }
end

0 comments on commit 0c746ea

Please sign in to comment.