Failed Deployment: Class "Mockery" not found
Hi, I am deploying by building a Docker Image and pulling that after successful building on my server into a docker-compose setup. When my pipelines tries to pull that image it says:
7 Replies
I am using this Dockerfile for multiple Laravel applications, e.g. Inertia + Vue, Statamic, APIs, ...
Sounds like that trait is using Mockery which might be a dev dependency?
I never heard of that trait, is that Livewire or Filament specific?
Me neither. But it's probably one of those. How to tell with just a single line π
I just encountered this issue. This is a Livewire 3 specific issue. In the
SupportFileUploads.php
file, there is a function that checks if the environment your app is running in is a "testing" environment. If this is the case, it will make use of the Mockery class.
In our case, we had an environment named "testing" and we just changed it to "test" in our .env, and it ran without any problems.Hi Hiz, could you explain a bit clearer what you did to fix this? We're running in to the same issue
Hi, We have 3 applications running on different servers. "Testing", "Acceptation" and "Production".
On our testing server we have in our .env file the following:
And I simply renamed "testing" to "test" for APP_ENV
This resolved our issue.