Giter VIP home page Giter VIP logo

asset-cdn's People

Contributors

arubacao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

asset-cdn's Issues

asset_cdn with id= (cache busting)

There's something I'm not understanding, when using:
{{ style(mix_cdn('css/frontend.css')) }} the result is <link media="all" type="text/css" rel="stylesheet" href="https://cdn.agora.community/css/frontend.css?id=e0496e6f8f90bb488b9e"> ๐Ÿ‘

How to use versionning for asset_cdn? Trying to <img src="{{ asset_cdn("test.png") }}"> the result is <img src="https://mycdn.com/test.png"> no ?id= append.

So now updating an image on S3 is not updated on the website. Trying to bust the 1 year cache configured on the object meta-data on S3.

In FilesystemManager.php line 126: Driver [] is not supported.

When I run php artisan asset-cdn:sync get following error.

In FilesystemManager.php line 126: Driver [] is not supported.

I have set following code in /config/filesystems.php

'default' => env('FILESYSTEM_DRIVER', 'local'),

    'cloud' => env('FILESYSTEM_CLOUD', 's3'),

    'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],

        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL').'/storage',
            'visibility' => 'public',
        ],

        's3' => [
            'driver' => 's3',
            'key' => env('XXXXXXXX'),
            'secret' => env('XXXXXXXXXXXXXXX'),
            'region' => env('ap-southeast-1'),
            'bucket' => env('bpn.svr.files.public'),
        ],

    ],

and in flie /config/asset-cdn.php

'use_cdn' => env('USE_CDN', true),

    'cdn_url' => 'https://s3.console.aws.amazon.com/s3/buckets/bpn.svr.files.public',

    'filesystem' => [
        'disk' => 'asset-cdn',

        'options' => [
            //
        ],
    ],

    'files' => [
        'ignoreDotFiles' => true,

        'ignoreVCS' => true,

        'include' => [
            'paths' => [
                //
            ],
            'files' => [
                //
            ],
            'extensions' => [
                //
            ],
            'patterns' => [
                //
            ],
        ],

        'exclude' => [
            'paths' => [
                //
            ],
            'files' => [
                //
            ],
            'extensions' => [
                //
            ],
            'patterns' => [
                //
            ],
        ],
    ],

asset-cdn_sync_error

bitbucket

Laravel 7 support?

Laravel 7 came out - I was wondering if there will be any support for it ?

readme

Pushes assets that have been defined in the config to the CDN. Pushes all assets. Does not delete files on CDN.

$ php artisan asset-cdn:sync -> asset-cdn:push

mix_cdn() and asset_cdn() does not work on production server

Hi,

Your library works perfectly on my local dev environment but somehow mix_cdn() and asset_cdn() helper functions keep output URL to the assets in my server instead of the URL to CloudFront.

Do you have any suggestions about the problem?

Thanks for your work again.

inlcude files problem

finder search files use regexp but i need only full path. for example if i write

'include' => [
    'paths' => [
         'js',
         'css',
     ]
]

finder should find files in only public/js and public/css folders but it finds files in all js and css folder in public folder. it is a bug think and i need help ...

php artisan asset-cdn:sync not working.

asset-cdn_sync

After run php artisan asset-cdn:sync nothing happen.

I have all ready push all css, js files on CDN. Now I added some new files in my local stystem. To deploy new added files on CDN I run php artisan asset-cdn:sync but nothing happen.

when i run artisan asset-cdn:push All files deploy again which is more time consuming and no need to already deployed file again.

Please can you help me why php artisan asset-cdn:sync not working??

bucket namespace problem

Hi,

your library is really great! But I have small problem.
For example I have bucket: s_web where I have two folders:

  • assets
  • images

and my question is: is it possible to define namespace for example assets where command php artisan asset-cdn:sync push data to bucket s_web and directory assets?

Cloudflare cdn

Can I use this package to sync assets in a cloudflare cdn?

Laravel 6 Support

Laravel 6.0 just came out but we're having some issues upgrading because of asset-cdn.

Composer.json:
"laravel/framework": "^6.0"

Composer update output:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove arubacao/asset-cdn 0.2.1
    - Conclusion: don't install laravel/framework v6.0.0
    - Installation request for arubacao/asset-cdn ^0.2.1 -> satisfiable by arubacao/asset-cdn[0.2.1].
    - Conclusion: don't install laravel/framework 6.x-dev
    - arubacao/asset-cdn 0.2.1 requires laravel/framework ~5.4 -> satisfiable by laravel/framework[5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.x-dev, 5.8.x-dev].
    - Can only install one of: laravel/framework[6.0.x-dev, 5.4.x-dev].
    - Can only install one of: laravel/framework[6.0.x-dev, 5.5.x-dev].
    - Can only install one of: laravel/framework[6.0.x-dev, 5.6.x-dev].
    - Can only install one of: laravel/framework[6.0.x-dev, 5.7.x-dev].
    - Can only install one of: laravel/framework[6.0.x-dev, 5.8.x-dev].
    - Installation request for laravel/framework ^6.0 -> satisfiable by laravel/framework[6.0.x-dev, 6.x-dev, v6.0.0].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.