Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

Don't fail on boot because of missing S3 keys when S3 is not used

  • Loading branch information...
colorfulfool committed Jul 14, 2017
1 parent 6dcdc5c commit 62e5562edb72f591c6af4c4da2bce3db18b5ba36
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/active_storage/storage_services.yml
@@ -9,8 +9,8 @@ local:
# Use rails secrets:edit to set the AWS secrets (as shared:aws:access_key_id|secret_access_key)
service: S3
access_key_id: <%=[:access_key_id] %>
secret_access_key: <%=[:secret_access_key] %>
access_key_id: <%= Rails.application.secrets.dig(:aws, :access_key_id) %>
secret_access_key: <%= Rails.application.secrets.dig(:aws, :secret_access_key) %>
region: us-east-1
bucket: your_own_bucket

0 comments on commit 62e5562

Please sign in to comment.
You can’t perform that action at this time.