taf2/curb

Nothing is running?

csdougliss opened this issue · 1 comments

namespace :magento do
  task :dev2_cache_warmer_gem do
    on roles(:app) do
      within release_path do
          Curl::Easy.perform("http://127.0.0.1:8080") do |curl|
            curl.headers["Host"] = "www-xxx"
          end
      end
    end
  end
end

after("magento:cache:flush", "magento:dev2_cache_warmer_gem")

Other tasks specified after magento:cache:flush are - have I not done something correctly?

taf2 commented

Maybe set a timeout on that request?

response = Curl.get('http://127.0.0.1:8080") {|http|
     http.headers['Host'] = 'www-xxx'
     http.timeout = 10
}

that's my best guess also can use the simpler Curl.get method...