I'm finding a good way to show a maintenance page while deploying to production.
At first I thought about this (while in production mode)
rm -rf pub/static/* -not .htaccess
rm -rf var/cache (and all other caching stuff)
php bin/magento setup:static-content:deploy
But this does not work as it does not regenerate my static files.
The only thing which regenerates my static files is to
re-enable the developer mode.
But in developer mode the maintenance mode does not trgger a 50x server state.
How do you guys handle this?