I have a problem with Laravel Envoy.
I'm wrote script for deploying on server and I'm calling that script with
envoy run deploy --environment=staging
but when error occur, I can't see from what production is error.
For example, error occur on php artisan migrate and I can catch task where error occur but I can't get environment.
Here is my code:
@error
@slack('hook', '#deploy', "Deploy failed on {$environment} error:
$task")
exit;
@enderror
And the output on slack channel deploy is:
Deploy failed on error: migrate-db