cdn icon indicating copy to clipboard operation
cdn copied to clipboard

upload without public directory

Open shahriar1 opened this issue 7 years ago • 5 comments

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

shahriar1 avatar Nov 15 '16 17:11 shahriar1

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/*'',

]

Mulkave avatar Nov 16 '16 11:11 Mulkave

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.

shahriar1 avatar Nov 16 '16 12:11 shahriar1

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

Mulkave avatar Nov 16 '16 12:11 Mulkave

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

shahriar1 avatar Nov 16 '16 14:11 shahriar1

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

benswinburne avatar Apr 29 '17 14:04 benswinburne