mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-26 05:55:15 +00:00
Ensure ENV vars in applications.yml actually update stored Spree::Config preferences
This commit is contained in:
@@ -20,6 +20,12 @@ Spree.config do |config|
|
||||
# Auto-capture payments. Without this option, payments must be manually captured in the paypal interface.
|
||||
config.auto_capture = true
|
||||
#config.override_actionmailer_config = false
|
||||
|
||||
# S3 settings
|
||||
config.s3_bucket = ENV['S3_BUCKET'] if ENV['S3_BUCKET']
|
||||
config.s3_access_key = ENV['S3_ACCESS_KEY'] if ENV['S3_ACCESS_KEY']
|
||||
config.s3_secret = ENV['S3_SECRET'] if ENV['S3_SECRET']
|
||||
config.use_s3 = true if ENV['S3_ACCESS_KEY'] && ENV['S3_SECRET']
|
||||
end
|
||||
|
||||
# Don't log users out when setting a new password
|
||||
|
||||
Reference in New Issue
Block a user