-
I've been working on my Alchemy-based app couple of days ago, then stopped untill today and now, after trying to upload a photo with media manager, I'm getting a following error:
Here is my dragonfile config initializer. require "dragonfly/s3_data_store"
Dragonfly.app(:alchemy_pictures).configure do
dragonfly_url nil
plugin :imagemagick
secret "xxx"
url_format "/pictures/:job/:basename.:ext"
if Rails.env.production?
datastore :s3, Rails.application.credentials.aws
else
datastore :file,
root_path: Rails.root.join("uploads/pictures").to_s,
server_root: Rails.root.join("public"),
store_meta: false
end
end
# Mount as middleware
Rails.application.middleware.use Dragonfly::Middleware, :alchemy_pictures
# Attachments
Dragonfly.app(:alchemy_attachments).configure do
if Rails.env.production?
datastore :s3, Rails.application.credentials.aws
else
datastore :file,
root_path: Rails.root.join("uploads/attachments").to_s,
store_meta: false
end
end I can see that files are being properly created under |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Alright, i found this thread AlchemyCMS/alchemy-dragonfly-s3#10 and it turned out it was about moving |
Beta Was this translation helpful? Give feedback.
-
Glad you figured it out. One of the many reasons why I can't wait to finally merge in #2968 (still working on a final git rebase on that branch) |
Beta Was this translation helpful? Give feedback.
Alright, i found this thread AlchemyCMS/alchemy-dragonfly-s3#10 and it turned out it was about moving
alchemy-dragonfly-s3
gem toproduction
group