Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload without public directory #104

Open
shahriar1 opened this issue Nov 15, 2016 · 5 comments
Open

upload without public directory #104

shahriar1 opened this issue Nov 15, 2016 · 5 comments
Labels

Comments

@shahriar1
Copy link

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

@Mulkave
Copy link
Member

Mulkave commented Nov 16, 2016

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
Copy link
Author

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
Copy link
Member

Mulkave commented Nov 16, 2016

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

@shahriar1
Copy link
Author

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

@benswinburne
Copy link

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

gaodeng added a commit to gaodeng/laravelcdn that referenced this issue Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants