For my next project I will use automatic deployments with git. I can run a shellscript before and after deployment. Is it possible to set "maintenance" automatically with shell?
In my .htaccess then I would check if a server variable is set to deployment or not to do the rewrite to maintenance?
Is this possible and how should I handle this?