Skip to content

Commit

Permalink
Merge pull request #21355 from kbrock/more_dirs
Browse files Browse the repository at this point in the history
add prod dirs via .gitkeep
  • Loading branch information
bdunne authored Aug 9, 2021
2 parents 784a2ff + 61629cd commit 7a1fcf8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/picture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ class Picture < ApplicationRecord

virtual_has_one :image_href, :class_name => "String"

URL_ROOT = Rails.root.join("public").to_s
DEFAULT_DIRECTORY = File.join(URL_ROOT, "pictures")
FileUtils.mkdir_p(DEFAULT_DIRECTORY)
URL_ROOT = Rails.root.join("public").to_s.freeze
DEFAULT_DIRECTORY = File.join(URL_ROOT, "pictures").freeze

def self.directory
@directory || DEFAULT_DIRECTORY
Expand Down
Empty file added data/git_repos/locks/.gitkeep
Empty file.
Empty file added public/pictures/.gitkeep
Empty file.
Empty file added public/upload/.gitkeep
Empty file.

0 comments on commit 7a1fcf8

Please sign in to comment.