make touching /tmp/app-initialized depend on heroku env var

This commit is contained in:
Sven Fuchs 2014-06-20 23:57:43 +02:00
parent f383a2e1b3
commit 4a0bdaafe6

View File

@ -55,7 +55,7 @@ module Travis::Api
def self.setup(options = {})
setup! unless setup?
Endpoint.set(options) if options
FileUtils.touch('/tmp/app-initialized')
FileUtils.touch('/tmp/app-initialized') if ENV['DYNO'] # Heroku
end
def self.new(options = {})