Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/models/organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down