diff --git a/app/models/deploy_local.rb b/app/models/deploy_local.rb index a4d1bf6..5cb5e95 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 0429f6d..d5ffe51 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?