Skip to content

Instantly share code, notes, and snippets.

@vdloc
Last active April 19, 2023 03:11
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 vdloc/99d2868c31037d5c12fb7e3bec72ddd3 to your computer and use it in GitHub Desktop.
Save vdloc/99d2868c31037d5c12fb7e3bec72ddd3 to your computer and use it in GitHub Desktop.
alias mg-index="php bin/magento indexer:reindex"
alias mg-deploy="sudo rm -rf var/view_preprocessed/ var/cache/ var/log/ pub/static/frontend && php bin/magento s:s:d -f -a frontend && mg-clear-cache"
alias mg-deploy-fast="sudo rm -rf var/view_preprocessed/ var/cache/ var/log/ pub/static/frontend && php bin/magento s:s:d -f -a frontend en_US de_DE && mg-clear-cache"
alias change-php="sudo update-alternatives --config php"
alias mg-clear-cache="bin/magento cache:flush"
alias start-elasticsearch="sudo systemctl --now enable elasticsearch"
alias mg-full-refresh="start-es && php bin/magento indexer:reindex && php bin/magento setup:upgrade && php bin/magento setup:di:compile && rm -rf var/view_preprocessed/ var/cache/ var/log/ pub/static/frontend/ && php bin/magento setup:static-content:deploy -f && php bin/magento cache:flush "
alias mg-compile="php bin/magento setup:di:compile"
alias mg-upgrade="php bin/magento setup:upgrade"
alias mg-deploy-admin="sudo php bin/magento s:s:d -f -a adminhtml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment