Explorar el Código

Skip sanity_check if APP_SECRET_TOKEN is defined

Akinori MUSHA hace 1 año
padre
commit
3afe981cc1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/gemfile_helper.rb

+ 1 - 1
lib/gemfile_helper.rb

@@ -57,7 +57,7 @@ class GemfileHelper
     end
 
     def sanity_check(env)
-      return if ENV['CI'] == 'true' || !env.empty?
+      return if ENV['CI'] == 'true' || ENV['APP_SECRET_TOKEN'] || !env.empty?
       puts warning
       raise "Could not load huginn settings from .env file."
     end