setup.ps1 606 B

12345678910111213141516171819202122232425262728
  1. bin/cli chmod u+x bin/magento
  2. BASE_URL=${1:-magento2.test}
  3. bin/cli bin/magento setup:install `
  4. --db-host=db `
  5. --db-name=magento `
  6. --db-user=magento `
  7. --db-password=magento `
  8. --base-url=https://$BASE_URL/ `
  9. --admin-firstname=John `
  10. --admin-lastname=Smith `
  11. --admin-email=john.smith@gmail.com `
  12. --admin-user=john.smith `
  13. --admin-password=password123 `
  14. --language=en_US `
  15. --currency=USD `
  16. --timezone=America/New_York `
  17. --use-rewrites=1
  18. bin/fixperms
  19. echo "Turning on developer mode.."
  20. bin/magento deploy:mode:set developer
  21. bin/magento indexer:reindex
  22. bin/magento cache:enable