Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

abbood's avatar

How to run post hooks on an envoyer redeploy

This problem started happening after we moved from forge to envoyer

envoyer rollbacks work very well, however we noticed that the install composer dependencies post hooks don't actually run when we click on "redeploy" of a previous deploy.

specifically, we have this post hook:

echo "" | sudo -S service php7.1-fpm reload

if [ -f artisan ]
then
    php artisan migrate --force
    php artisan config:cache
    php artisan queue:restart
fi

the point we care about the most is restarting the queues, since every time we change the code, the queues invalidate automatically.

so the work around now is that after every rollback, we have to go to forge and restart the queue workers there manually.. how to fix this?

0 likes
0 replies

Please or to participate in this conversation.