mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:11:42 +00:00
deploy en desarrollo
This commit is contained in:
parent
98d1f190dd
commit
a66039e8fc
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue