1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #!/bin/bash
- bin/stop
- docker-compose -f docker-compose.yml up -d
- echo "Copying all files from host to container..."
- bin/copytocontainer --all
- bin/fixowns
- bin/clinotty chmod u+x bin/magento
- BASE_URL=${1:-magento2.test}
- bin/clinotty bin/magento setup:install \
- --db-host=db \
- --db-name=magento \
- --db-user=magento \
- --db-password=magento \
- --base-url=https://$BASE_URL/ \
- --admin-firstname=John \
- --admin-lastname=Smith \
- --admin-email=john.smith@gmail.com \
- --admin-user=john.smith \
- --admin-password=password123 \
- --language=en_US \
- --currency=USD \
- --timezone=America/New_York \
- --use-rewrites=1
- echo "Turning on developer mode.."
- bin/clinotty bin/magento deploy:mode:set developer
- bin/clinotty bin/magento indexer:reindex
- bin/copyfromcontainer app
- echo "Restarting containers with host bind mounts..."
- bin/restart
- echo "Docker development environment setup complete."
|