mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 06:09:09 +01:00
fix images when not using S3/radosgw
"das system ist das problem, ja?" fixes #822
This commit is contained in:
parent
de746419b7
commit
312fadff2a
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ class BaseUploader < CarrierWave::Uploader::Base
|
|||
end
|
||||
|
||||
def paperclip_path
|
||||
return "/system/users/:attachment/:id_partition/:style/:basename.:extension" if APP_CONFIG["fog"].blank?
|
||||
return "/users/:attachment/:id_partition/:style/:basename.:extension" if APP_CONFIG["fog"].blank?
|
||||
|
||||
"users/:attachment/:id_partition/:style/:basename.:extension"
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@ CarrierWave.configure do |config|
|
|||
:provider => "Local",
|
||||
:local_root => "#{Rails.root}/public",
|
||||
}
|
||||
config.fog_directory = "/system"
|
||||
config.fog_directory = "/"
|
||||
|
||||
unless APP_CONFIG["fog"].nil?
|
||||
config.fog_credentials = APP_CONFIG.dig("fog", "credentials") unless APP_CONFIG.dig("fog", "credentials").nil?
|
||||
|
|
Loading…
Reference in a new issue