Advertisement
Guest User

Untitled

a guest
Apr 7th, 2017
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 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. ```
  41. ## Managing Magento
  42. ```
  43. php bin/magento setup:static-content:deploy
  44. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement