duanbu1421 2013-04-19 04:44
浏览 109

app / console assets:使用流包装器错误安装到S3

I have a stream wrapper configured to work with amazon s3 using the Gaufrette bundle to manage the filesystem. I can successfully dump assets using assetic and my current configuration is as follows:

knp_gaufrette:
    adapters:
        amazon:
            amazon_s3: 
                amazon_s3_id: site_store.s3
                bucket_name: %site_store.bucket_name%
                create: true

    filesystems:
        amazon:
            adapter: amazon

    stream_wrapper:
        protocol: s3
        filesystems:
            - amazon

assetic:
    read_from:      %cdn_path_prod%
    write_to:       %cdn_path_prod%

and my params:

  cdn_url_prod: "http://images.site.com/"
    cdn_path_prod: "s3://amazon"

I was able to do app/console assetic:dump --env=dev. Then it would upload the assets to my s3 buckets successfully. However when I try to do the same with assets install by doing:

app/console assets:install s3://amazon

It gives me this error:

[InvalidArgumentException]  
The specified path (s3://amazon) is invalid.

I've looked over the web and someone was able to do it as he described here. What is wrong with my steam wrapper?

  • 写回答

2条回答 默认 最新

  • doudiejian5827 2013-04-26 13:54
    关注

    Are you sure that any stream wrapper is regsitered to handle "s3://" scheme ?

    In https://github.com/Cybernox/AmazonWebServicesBundle/blob/master/Resources/doc/cdn.md#dump-assets-to-the-s3-bucket , you'll see how they register the stream wrapper to be able to dump assets to a "s3://" target.

    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题