horizon is setup in local is working properly, local horizon dashboard show me the supervisor info and current workload But in production horizon dashboard the status is active and not show supervisor and current workload info. it is showing batches in pending status
This type of horizon dashboard is showing in production :-
https://user-images.githubusercontent.com/5956778/58878223-09ac0280-86d3-11e9-8442-fe0a58059174.png
-add the supervisors
-update the QUEUE_CONNECTION to redis
-try the php artisan horizon:terminate
2
Answers
Got the issue. horizon didn't find the app_env value in environments array
make sure to modify your horizon config in
config/horizon.php
,here is an example:
this array is default environment for your supervisor which can be located in
horizon.php
and the following array environment in local and production:
i think you need to modify the production part to fix your problem. but if this not works too, send your supervisor configuration file maybe problems is there.