Skip to content

Commit

Permalink
branch with just s3 caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Hill committed Feb 19, 2024
1 parent 67bdb12 commit c354af4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ gem 'stateful_enum' # extends ActiveRecord::Enum with state
gem 'webpacker'
gem 'wisper' # publish subscribe for ruby objects

gem 's3_cache_store', github: 'tbhi/s3_cache_store', branch: 'fix-wrong-number-of-arguments'

# Database/Data
gem 'after_party' # load data after deploy
gem 'auto_strip_attributes', '~> 2.5'
Expand Down
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ GIT
rubyvis (~> 0.6.1)
spreadsheet (~> 1.1)

GIT
remote: https://github.com/tbhi/s3_cache_store.git
revision: aac2733bee5f9ba4a5a2826f712d6844e0de5a95
branch: fix-wrong-number-of-arguments
specs:
s3_cache_store (0.1.0)
activesupport (>= 6)
aws-sdk-s3 (~> 1)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -797,6 +806,7 @@ DEPENDENCIES
rubocop-performance
rubocop-rails
rubocop-rspec
s3_cache_store!
sass-rails
scout_apm
selenium-webdriver
Expand Down
3 changes: 2 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@
config.active_storage.service = :amazon
# session cookie has configurable name so that live and test logins are separated
config.session_store :cookie_store, key: ENV.fetch('SESSION_COOKIE_NAME') { '_energy-sparks_session' }, domain: '.energysparks.uk'
config.cache_store = :file_store, "#{root}/tmp/cache/rails_cache_store"
config.active_record.cache_versioning = false
config.cache_store = :s3_cache_store, { bucket: ENV['CACHE_BUCKET'] }
# Default good job execution mode configuration for production
# See https://github.com/bensheldon/good_job#configuration-options
config.good_job.execution_mode = :external
Expand Down

0 comments on commit c354af4

Please sign in to comment.