Guest User

Untitled

a guest
Jan 9th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. ## List all available commands
  2. ```
  3. php bin/magento --list
  4. ```
  5. ## Installing/Upgrading Magento
  6. ```
  7. php bin/magento setup:upgrade
  8. php bin/magento deploy:mode:set production
  9. ```
  10. ## Migrating Magento
  11. ```
  12. php bin/magento migrate:settings vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.2.4/config.xml
  13. php bin/magento migrate:data vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.2.4/config.xml
  14. php bin/magento migrate:delta vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.2.4/config.xml
  15.  
  16. php bin/magento admin:user:create --admin-user="admin" --admin-password="1q2w3e4r" --admin-email="admin@example.com" --admin-firstname="Admin" --admin-lastname="ADev"
  17. ```
  18. ## Common Commands
  19. ```
  20. sudo rm -rf var/generation
  21. sudo rm -rf var/static
  22.  
  23. php bin/magento cache:flush
  24. php bin/magento cache:clean
  25. php bin/magento indexer:reindex
  26. ```
  27. ## File Permissions
  28. ```
  29. find . -type f -exec chmod 644 {} \;
  30. find . -type d -exec chmod 755 {} \;
  31. find ./var -type d -exec chmod 777 {} \;
  32. find ./pub/media -type d -exec chmod 777 {} \;
  33. find ./pub/static -type d -exec chmod 777 {} \;
  34. chmod 777 ./app/etc
  35. chmod 644 ./app/etc/*.php
  36. chown -R root:www-data .
  37. chmod u+x bin/magento
  38.  
  39. chmod -R 777 var
  40. chmod -R 777 app/etc
  41. chmod -R 777 pub/media
  42. chmod -R 777 pub/static
  43. ```
  44. ## Managing Magento
  45. ```
  46. cd pub/static && find . -depth -name .htaccess -prune -o -delete && cd ../..
  47. chmod -R 777 pub/static
  48. rm -rf var/cache/ var/composer_home var/generation/ var/page_cache/ var/view_preprocessed/
  49. php bin/magento setup:static-content:deploy
  50. ```
  51. ## Compile
  52. ```
  53. cd pub/static && find . -depth -name .htaccess -prune -o -delete && cd ../..
  54. chmod -R 777 pub/static
  55. rm -rf var/cache/ var/composer_home var/generation/ var/page_cache/ var/view_preprocessed/ var/di/
  56. php bin/magento setup:di:compile
  57. ```
Add Comment
Please, Sign In to add comment