Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

branch with just s3 caching #3430

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading