Magento 2 Deployment Issues

by xhallix   Last Updated March 13, 2018 07:09 AM

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?

Related Questions

Magento 2 Autoprefixer in production mode

Updated June 18, 2018 13:09 PM

Deploy Production mode with fresh install

Updated November 16, 2018 06:09 AM