Skip to content

Instantly share code, notes, and snippets.

@radub
Last active November 29, 2018 09:33
Show Gist options
  • Save radub/dd7d27983eec560782657662a4f48132 to your computer and use it in GitHub Desktop.
Save radub/dd7d27983eec560782657662a4f48132 to your computer and use it in GitHub Desktop.
# 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