deploy en desarrollo

This commit is contained in:
f 2020-10-03 21:44:54 -03:00
parent 98d1f190dd
commit a66039e8fc
2 changed files with 6 additions and 2 deletions

View file

@ -40,7 +40,7 @@ class Deploy < ApplicationRecord
end
def gems_dir
Pathname.new(File.join(home_dir, '..', 'gems')).realpath.to_s
ENV.fetch('GEMS_DIR', Pathname.new(File.join(home_dir, '..', 'gems')).realpath.to_s)
end
# Corre un comando y devuelve true si terminó correctamente

View file

@ -82,7 +82,11 @@ class DeployLocal < Deploy
end
def bundle
run %(bundle install --no-cache --path="#{gems_dir}")
if Rails.env.production?
run %(bundle install --no-cache --path="#{gems_dir}")
else
run %(bundle install)
end
end
def jekyll_build