hacer el deploy en el entorno correspondiente

This commit is contained in:
f 2019-09-20 10:19:44 -03:00
parent 6ab8ff0f06
commit 0871291d2e
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ class DeployLocal < Deploy
{
'HOME' => home_dir,
'PATH' => paths.join(':'),
'JEKYLL_ENV' => 'production'
'JEKYLL_ENV' => Rails.env
}
end

View file

@ -8,7 +8,7 @@ class DeployZipTest < ActiveSupport::TestCase
assert deploy_local.deploy
assert File.directory?(deploy_local.destination)
assert File.exist?(File.join(deploy_local.destination, 'robots.txt'))
assert File.exist?(File.join(deploy_local.destination, 'index.html'))
assert_equal 3, deploy_local.build_stats.count
assert deploy_local.build_stats.map(&:bytes).compact.inject(:+).positive?