Advertisement
Guest User

stu1234556

a guest
Feb 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. // set URL HTTP
  2. update magento2.core_config_data set value = 'https://magento2.local/' where value = 'http://master-7rqtwti-veu4ppihqkiu2.eu.magentosite.cloud/';
  3.  
  4. //set URL HTTPS
  5. update magento2.core_config_data set value = 'https://magento2.local/' where value = 'https://master-7rqtwti-veu4ppihqkiu2.eu.magentosite.cloud/';
  6.  
  7. // purge review emails to prevent reviews sending by mistake
  8. delete from magento2.pbh_sales_order_ekomi_review;
  9.  
  10.  
  11. Run
  12. php bin/magento setup:upgrade
  13.  
  14.  
  15.  
  16. [CONFIGURE INDEXERS]
  17. // this recreates the triggers in the db
  18.  
  19. php bin/magento indexer:set-mode realtime
  20. php bin/magento indexer:set-mode schedule
  21.  
  22.  
  23. https://magento2.local/ should load default store
  24.  
  25. https://magento2.local/vsafetystoreview should load safety site
  26.  
  27.  
  28. If there are errors loading sites, run the below commands to set file permissions:
  29.  
  30. Cd (to home folder)
  31. Cd into magenta project folder
  32.  
  33. Replace screen with your Mac login
  34.  
  35. sudo dseditgroup -o edit -a sgreen -t user _www
  36.  
  37.  
  38. find . -type f -exec chmod 644 {} \;
  39. find . -type d -exec chmod 755 {} \;
  40. find ./var -type d -exec chmod 777 {} \;
  41. find ./pub/media -type d -exec chmod 777 {} \;
  42. find ./pub/static -type d -exec chmod 777 {} \;
  43. chmod 777 ./app/etc
  44. chmod 644 ./app/etc/*.xml
  45. chown -R :_www .
  46. chmod u+x bin/magento
  47.  
  48.  
  49. [CRYPT]
  50.  
  51. // Get the crypt key from the prod server and update the load dev environment so we can decrypt data in database
  52.  
  53. // get from cloud CLI
  54. /app/etc/env.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement