2
0

setup 627 B

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