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

Can we use --domain=all when using optimize:clear and others #45

Closed
yanuaraditia opened this issue Dec 23, 2020 · 1 comment
Closed

Comments

@yanuaraditia
Copy link

I've try this awesome plugin for a week and sometimes I need to clear storage for some domains, but that become crowded when using so many domain and trying to clear all.

Can you or someone figure out how to solve this problem

@gecche
Copy link
Owner

gecche commented Dec 23, 2020

Hi,

thanks for your feedback!

Using "--all" or similar option in an artisan command I think it is not possible because Laravel doesn't allow to switch envs at runtime.

The only way I figure out to solve this is to add some sort of "shell script helpers" ti the package, but I'm not very expert in this: there is another issue currently open, #14, in which we discuss basically the same feature with more details, so I close this issue as a duplicate.
In a project with many domains, I currently use hand made scripts for launching commands against a set of domains.

If you want to contribute you are welcome! 👍

Cheers

Giacomo

P.S.: If you like the package please leave a star If you haven't done yet :)

@gecche gecche closed this as completed Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants