Capifony can't download composer - not following redirect

后端 未结 3 1858
孤城傲影
孤城傲影 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 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

提交回复
热议问题