1

Change to Production mode the Theme something error but developer mode is working , how can i do? please help! thank you!

my command:

php bin/magento deploy:mode:set production -s --skip-compilation
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
php bin/magento setup:static-content:deploy
2
  • try below solution : magento.stackexchange.com/questions/121231/…
    – shail
    Jun 13, 2018 at 12:13
  • i can finish to changed the mode , the magento working but the theme some like css or JavaScript missed. i already ran bin/magento setup:static-content:deploy en_US but same the problem. how can i do? thank you @shail
    – niceonelee
    Jun 13, 2018 at 14:59

1 Answer 1

1

Try this one:

sudo rm -rf var/cache/*; sudo rm -rf var/di/*; sudo rm -rf var/generation/*; sudo rm -rf var/view_preprocessed/*; sudo rm -rf pub/static/*;
php -f bin/magento deploy:mode:set production -s
php -f bin/magento setup:di:compile
php -f bin/magento setup:static-content:deploy
1
  • i found the problem is JavaScript and Css Setting Enable, JavaScript Bundling and Minify caused. @JAKE THE GREAT
    – niceonelee
    Jun 14, 2018 at 21:47

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.