diff --git a/app/models/organization.rb b/app/models/organization.rb index 750929f0fd..cd71dba799 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -98,7 +98,11 @@ def self.seed_items(org) end def logo_path - Organization::DIAPER_APP_LOGO.to_s + if logo.attached? + ActiveStorage::Blob.service.send(:path_for, logo.key).to_s + else + Organization::DIAPER_APP_LOGO.to_s + end end private diff --git a/config/deploy.rb b/config/deploy.rb index 74022525e9..8a1e488de1 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -33,7 +33,7 @@ ## Linked Files & Directories (Default None): set :linked_files, %w{config/database.yml} -set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} +set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system storage} namespace :puma do desc "Create Directories for Puma Pids and Socket"