Last active
November 29, 2018 09:33
-
-
Save radub/dd7d27983eec560782657662a4f48132 to your computer and use it in GitHub Desktop.
This file contains 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
# master reset cache, index and statics | |
sudo php ./bin/magento maintenance:enable && \ | |
sudo php ./bin/magento setup:upgrade && \ | |
sudo php ./bin/magento indexer:reindex && \ | |
sudo php ./bin/magento setup:static-content:deploy -j 1 && \ | |
sudo php ./bin/magento cache:clean && \ | |
sudo php ./bin/magento setup:di:compile && \ | |
sudo php ./bin/magento maintenance:disable | |
# reset admin pass | |
UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxPASSWORD', 256), ':xxxxxxx:1') WHERE username = 'ADMINUSER'; | |
# create admin user from CLI | |
php bin/magento admin:user:create --admin-firstname="Firstname" --admin-lastname="Lastname" --admin-email="email@address" --admin-user="adminuser" --admin-password="password" | |
# di compile disable xdebug | |
sudo phpdismod xdebug; php bin/magento cache:clean; php bin/magento setup:di:compile; sudo phpenmod xdebug; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment