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
php bin/magento admin:user:create --admin-firstname=super --admin-lastname=admin [email protected] --admin-user=super.admin --admin-password=password! |
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
#example | |
git reset --hard f414f31 | |
git reset --soft HEAD@{1} | |
git commit -m "Reverting to the state of the project at 2b9ee75" |
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
chmod -R 775 pub/static/ var/ pub/media/ | |
rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/ | |
php -r "opcache_reset();" | |
php bin/magento deploy:mode:set developer | |
php bin/magento setup:static-content:deploy en_US -f | |
php bin/magento cache:flush | |
php bin/magento indexer:reindex | |
php bin/magento cache:clean |
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
# access mysql. i'll use root as default user. | |
mysql -u root -p{your passwrord - default is root or admin or read mysql message after installation} | |
#create a new database | |
create database database_name; | |
#create a new user | |
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; | |
#access permits to the new database |
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
#After configuring the theme in dev->tools->grunt->configs->themes.js | |
grunt clean | |
grunt exec:theme | |
grunt less:theme | |
#while developing | |
grunt watch |
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
#enable redis and cache | |
php bin/magento setup:config:set --cache-backend=redis | |
bin/magento cache:enable | |
#disable block_html and full_page | |
bin/magento cache:disable block_html full_page | |
#flush xml cache through php storm | |
Php Storm -> Preferences -> Tools -> File Watchers -> + |
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
#Change previous commit message | |
git commit --ammend |
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
# Step 1 - Modify version number to composer.json | |
# Step 2 - Run composer | |
composer update | |
# Step 3 - Clean pre generated files | |
rm -rf var/view_preprocessed/* | |
rm -rf generated/* |
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
magento module:enable --clear-static-content Module_Name | |
magento module:disable --clear-static-content Module_Name |
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
git branch -d <branch_name> |
OlderNewer