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.
2 parents ba9b73d + 56a123a commit bc69cd1Copy full SHA for bc69cd1
config/environments/production.rb
@@ -79,4 +79,6 @@
79
80
# Do not dump schema after migrations.
81
config.active_record.dump_schema_after_migration = false
82
+
83
+ config.active_storage.service = :local
84
end
config/storage.yml
@@ -0,0 +1,16 @@
1
+# config/storage.yml
2
+test:
3
+ service: Disk
4
+ root: <%= Rails.root.join("tmp/storage") %>
5
6
+local:
7
8
+ root: <%= Rails.root.join("storage") %>
9
10
+# Example for cloud storage (e.g., Amazon S3)
11
+# amazon:
12
+# service: S3
13
+# access_key_id: <%= ENV["AWS_ACCESS_KEY_ID"] %>
14
+# secret_access_key: <%= ENV["AWS_SECRET_ACCESS_KEY"] %>
15
+# region: us-east-1
16
+# bucket: your-bucket-name
0 commit comments