2

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

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
| improve this answer | |
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.

| improve this answer | |
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
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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