-
-
Save firstval/d994c70925eb9522e2211c3a2f1ac0e2 to your computer and use it in GitHub Desktop.
Deploy Magento 2 steps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| php bin/magento setup:backup --db | |
| gzip var/backups/*.sql | |
| git pull | |
| php bin/magento maintenance:enable | |
| php bin/magento cache:enable | |
| rm -fr var/di var/generation var/cache | |
| php bin/magento setup:di:compile | |
| php bin/magento deploy:mode:set production --skip-compilation | |
| php bin/magento maintenance:enable | |
| php bin/magento setup:upgrade | |
| php bin/magento setup:di:compile | |
| php bin/magento setup:db-schema:upgrade | |
| php bin/magento setup:db-data:upgrade | |
| php bin/magento setup:static-content:deploy | |
| php bin/magento indexer:reindex | |
| php bin/magento maintenance:disable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment