Skip to content

Instantly share code, notes, and snippets.

@progcode
Created June 14, 2020 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save progcode/15a627ff5ddb192e0e9308a6601ad1c5 to your computer and use it in GitHub Desktop.
Save progcode/15a627ff5ddb192e0e9308a6601ad1c5 to your computer and use it in GitHub Desktop.
Magento2 Deploy
php bin/magento maintenance:enable
rm -rf pub/static/*
rm -rf var/cache/*
rm -rf var/view_preprocessed/*
rm -rf var/generation/*
rm -rf var/page_cache/*
rm -rf var/di/*
php bin/magento deploy:mode:set developer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
php bin/magento cache:flush
php bin/magento deploy:mode:set production
php bin/magento maintenance:disable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment