2
0

setup 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. bin/stop
  3. docker-compose -f docker-compose.yml up -d
  4. echo "Copying all files from host to container..."
  5. bin/copytocontainer --all
  6. bin/fixowns
  7. bin/clinotty chmod u+x bin/magento
  8. BASE_URL=${1:-magento2.test}
  9. bin/clinotty bin/magento setup:install \
  10. --db-host=db \
  11. --db-name=magento \
  12. --db-user=magento \
  13. --db-password=magento \
  14. --base-url=https://$BASE_URL/ \
  15. --admin-firstname=John \
  16. --admin-lastname=Smith \
  17. --admin-email=john.smith@gmail.com \
  18. --admin-user=john.smith \
  19. --admin-password=password123 \
  20. --language=en_US \
  21. --currency=USD \
  22. --timezone=America/New_York \
  23. --use-rewrites=1
  24. echo "Turning on developer mode.."
  25. bin/clinotty bin/magento deploy:mode:set developer
  26. bin/clinotty bin/magento indexer:reindex
  27. bin/copyfromcontainer app
  28. echo "Restarting containers with host bind mounts..."
  29. bin/restart
  30. echo "Docker development environment setup complete."