Vinelab / cdn

CDN Assets Manager Package for Laravel.
MIT License
214 stars 71 forks source link

upload without public directory #104

Open shahriar1 opened 7 years ago

shahriar1 commented 7 years ago

I want to upload assets that exists in public directory but not the public directory itself. Is it possible by changing any config?

Mulkave commented 7 years ago

Yes, you can use a combination of include and exclude from the docs https://github.com/Vinelab/cdn#files--directories to choose specifically what you'd like to have uploaded. Also when configuring your buckets, you may specify that:

'buckets' => [

    'my-bucket' => 'public/*'',

]
shahriar1 commented 7 years ago

I tried changing those options but it does upload public directory itself too with the files under public directory. But I only want to upload inner contents of the public directory not the public directory itself.

Mulkave commented 7 years ago

Have you tried excluding the public directory? For it's the default in the package.

shahriar1 commented 7 years ago

Yes I tried. It seems by default it pushes public directory when I run push command

benswinburne commented 7 years ago

I'm also having this issue. Can anyone post a working include/exclude example to make this work please?