Skip to content

Commit

Permalink
add prod dirs
Browse files Browse the repository at this point in the history
these 3 directories need to be in production (and writeable)
They were created by our rpm build process, but moving that here
to keep it in one place.

This is following suit for what we are doing to create the log directory
  • Loading branch information
kbrock committed Aug 4, 2021
1 parent 61c48e5 commit 61629cd
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 61629cd

Please sign in to comment.