mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Make test environment use filesystem for photos.
This commit is contained in:
parent
16082ade2a
commit
0c4a913f5d
@ -9,11 +9,17 @@ Dragonfly.app.configure do
|
|||||||
|
|
||||||
url_format "/media/:job/:name"
|
url_format "/media/:job/:name"
|
||||||
|
|
||||||
datastore :s3,
|
if Rails.env.test?
|
||||||
bucket_name: ENV['AWS_BUCKET'],
|
datastore :file,
|
||||||
access_key_id: ENV['AWS_KEY'],
|
root_path: Rails.root.join('public/system/dragonfly', Rails.env),
|
||||||
secret_access_key: ENV['AWS_SECRET'],
|
server_root: Rails.root.join('public')
|
||||||
region: 'eu-west-1'
|
else
|
||||||
|
datastore :s3,
|
||||||
|
bucket_name: ENV['AWS_BUCKET'],
|
||||||
|
access_key_id: ENV['AWS_KEY'],
|
||||||
|
secret_access_key: ENV['AWS_SECRET'],
|
||||||
|
region: 'eu-west-1'
|
||||||
|
end
|
||||||
|
|
||||||
processor :preview do |content| content.process! :thumb, '600x600' end
|
processor :preview do |content| content.process! :thumb, '600x600' end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user