diff --git a/app/models/deploy.rb b/app/models/deploy.rb index 907739f2..b1692280 100644 --- a/app/models/deploy.rb +++ b/app/models/deploy.rb @@ -40,7 +40,7 @@ class Deploy < ApplicationRecord end def gems_dir - ENV.fetch('GEMS_DIR', Pathname.new(File.join(home_dir, '..', 'gems')).realpath.to_s) + @gems_dir ||= Rail.root.join('_storage', 'gems', site.name) end # Corre un comando y devuelve true si terminó correctamente