简体   繁体   中英

Symfony and Azure Distribution Bundle - assets in Azure

I am trying to deploy an existing Symfony 2.1 application to Azure. For this I am using the Azure Distribution Bundle , and I am trying to deploy assets to Azure as documented here .

However, I am getting an error when doing windowsazure:package to create the package:

Catchable Fatal Error: Argument 2 passed to WindowsAzure\\DistributionBundle\\Deployment\\Assets\\BlobStrategy::__construct() must be an instance of WindowsAzure\\Blob\\BlobRestProxy, none given, called in C:\\IGPR\\igpr\\app\\cache\\azure\\appAzureDebugProjectContainer.php on line 2361 and defined in C:\\IGPR\\igpr\\vendor\\beberlei\\azure-distribution-bundle\\WindowsAzure\\DistributionBundle\\Deployment\\Assets\\BlobStrategy.php line 35

Here is the relevant section of my config.yml:

windows_azure_distribution:
...
    services:
        blob:
            default: UseDevelopmentStorage=true
            azureprod: DefaultEndpointsProtocol=http;AccountName=myaccountname;AccountKey=MyVeryLongAccOUntKeY==
    assets:
        type: blob
        connection_name: azureprod

Any ideas? Seems that the Blob proxy cannot be created. I get the same error if I try to use the local development storage.

The bundle is installed via Composer.

看起来这是Azure分发捆绑包中的错误,维护人员现已修复了该错误。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM