diff --git a/app/models/site.rb b/app/models/site.rb index e6530a9..daa83c4 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -388,7 +388,7 @@ class Site < ApplicationRecord # El directorio donde se almacenan los sitios def self.site_path - File.join(Rails.root, '_sites') + @site_path ||= ENV.fetch('SITE_PATH', Rails.root.join('_sites')) end def self.default