We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ed77b0 commit 7d40baaCopy full SHA for 7d40baa
config/environments/production.rb
@@ -39,7 +39,7 @@
39
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
40
41
# Store uploaded files on the local file system (see config/storage.yml for options)
42
- config.active_storage.service = :amazon
+ config.active_storage.service = ENV['AWS_ACCESS_KEY_ID'].present? ? :amazon : :local
43
44
# Mount Action Cable outside main process or domain
45
# config.action_cable.mount_path = nil
0 commit comments