Dec 1, 2017
0
Level 1
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?
Please or to participate in this conversation.