From 0871291d2eff29479467a14ae9596ed487bf482b Mon Sep 17 00:00:00 2001 From: f Date: Fri, 20 Sep 2019 10:19:44 -0300 Subject: [PATCH] hacer el deploy en el entorno correspondiente --- app/models/deploy_local.rb | 2 +- test/models/deploy_local_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/deploy_local.rb b/app/models/deploy_local.rb index a4d1bf60..5cb5e959 100644 --- a/app/models/deploy_local.rb +++ b/app/models/deploy_local.rb @@ -46,7 +46,7 @@ class DeployLocal < Deploy { 'HOME' => home_dir, 'PATH' => paths.join(':'), - 'JEKYLL_ENV' => 'production' + 'JEKYLL_ENV' => Rails.env } end diff --git a/test/models/deploy_local_test.rb b/test/models/deploy_local_test.rb index 0429f6d3..d5ffe51f 100644 --- a/test/models/deploy_local_test.rb +++ b/test/models/deploy_local_test.rb @@ -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?