Closed robdekort closed 2 months ago
I'm assuming you were doing it inside php please
command, correct?
Can you try running that same command but with Artisan, so php artisan statamic:*
?
Correct, and that makes it work Duncan!
Cool, thanks for testing! We probably need to do some more tweaking on our side regarding how please
works (related: #9729).
Cool, glad you're on the right path!
On Alpha 4, I still notice an issue with the glide command. Notice in the screenshot above that:
php artisan statamic:peak:clear-site
worksphp please peak:clear-site
does not workThe artisan cache:clear
command (that is also part of clear-site
) however ran without issue.
Not saying it's the fix but can you try Artisan::call('peak:clear-site')
(so without the statamic:
prefix)?
Do you mean Artisan::call('glide:clear')
?
Sorry, yeah.
Yep, that works!
Should I just use that and consider the case closed?
Nah, leave it open, it should work with the statamic:
prefix.
Nah I'd expect Artisan::call('statamic:glide:clear')
to be what you need to run and not Artisan::call('glide:clear')
. We'll sort it out. Thanks!
Hokey dokey. Thanks guys.
Fixed in #9926
Bug description
I have an addon that adds certain commands to Peak sites. In some of those commands I call other Artisan commands:
Artisan::call('cache:clear');
Artisan::call('statamic:glide:clear')
In one command I call them both.
In v5 Alpha 1 and 2 triggering those commands leads to an error:
When I replicate those commands in my actual project (and not in an addon) they work without issue. I can replace the
cache:clear
command with\Illuminate\Support\Facades\Cache::clear()
and that works, however there's no alternative like that for thestatamic:glide:clear
command.How to reproduce
Logs
No response
Environment
Installation
Starter Kit using via CLI
Antlers Parser
None
Additional details
No response