Restart nginx after deployment and fix redis connection