A restart of PHP-FPM is not needed after you deploy new code, you only may need to flush the OPcache.
When somehow some PHP web requests are stuck, it can help to restart PHP.
You can do this by logging in on SSH and executing:
~/bin/restart_php.sh