2

We have issues after switch to production mode: no work any style css: Gerris.pl

3 Answers 3

1

When you switch to production mode, Magento clear the contents of following directories:

var/cache
var/di
var/generation
var/view_preprocessed
pub/static

Now you have to deploy the static-content like this:

php bin/magento setup:static-content:deploy
1

You have to deploy the static content and recompile the code and clear all caches after switching the mode.

So you may have to run php bin/magento setup:static-content:deploy afterwards.

0

1.Clear content from directory var are:

var/cache
var/di
var/generation
var/view_processed

2.Clear content from pub directory except .htaccess file.

3.Now run command forcefully because in production mode content not automatically deploy like developer mode so here we need to use -f after command.

php bin/magento setup:static-content:deploy -f

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.