Capifony can't download composer - not following redirect

后端 未结 3 1853
孤城傲影
孤城傲影 2021-01-22 10:09

I\'m using Capifony to deploy my Symfony2 application, but as of today it can\'t download composer - jenkins output:

[32m--> Downloading Composer[0m
* executi         


        
相关标签:
3条回答
  • 2021-01-22 10:55

    Just update capifony to version 2.8.4.

    0 讨论(0)
  • 2021-01-22 11:06

    A new version of Capifony, version 2.8.5, has been released a couple of hours ago, which fixes this issue.

    Updating to 2.8.5 should solve your problems with the Composer download.

    0 讨论(0)
  • 2021-01-22 11:07

    There doesn't seem to be an option to set the url, but you can add your own task. To circumvent capifony downloading from the wrong url I added:

    task :download_composer do
      run "cd " + release_path + " && curl -s https://getcomposer.org/installer | php"
    end
    
    before "symfony:composer:update", "download_composer"
    before "symfony:composer:install", "download_composer"
    

    This works because capifony checks if composer.phar is already present, if it is it'll warn you but just continue anyway

    0 讨论(0)
提交回复
热议问题