@@ -43,17 +43,24 @@ nuke: clean ## Remove generated & deployment data
4343install-from-magento : # # Install module from official Magento repo (for testing)
4444 docker-compose -f ./public_html/docker-compose.yml run --rm build composer require --no-ansi jetrails/magento2-cloudflare:1.3.7
4545
46+ shell : # # Spawn a shell
47+ docker-compose -f ./public_html/docker-compose.yml run --rm deploy bash
48+
4649dev-create : # # Create development environment
4750 composer global config repositories.magento composer https://repo.magento.com/
48- composer create-project --repository-url=https://repo.magento.com/ magento/project-$(MAGENTO_EDITION ) -edition=$(MAGENTO_VERSION ) ./public_html
51+ composer create-project --prefer-dist -- repository-url=https://repo.magento.com/ magento/project-$(MAGENTO_EDITION ) -edition=$(MAGENTO_VERSION ) ./public_html
4952 cp .magento.docker.yml .magento.setup.params ./public_html
53+ cd public_html && ln -s ../docker-compose.override.yml ./docker-compose.override.yml
5054 cd public_html && composer require magento/ece-tools -w
51- cd public_html && ./vendor/bin/ece-docker build:compose --with-test --with-selenium -- no-varnish --mode developer
55+ cd public_html && ./vendor/bin/ece-docker build:compose --no-varnish --mode production
5256 cd public_html && docker-compose up -d
53- cd public_html && docker-compose run --rm deploy bin/magento setup:install ` cat .magento.setup.params | tr ' \n ' ' ' ` ;
54- cd public_html && docker-compose run --rm deploy magento-command deploy:mode:set developer
57+ cd public_html && docker-compose run --rm deploy composer self-update --2
58+ cd public_html && docker-compose run --rm deploy magento-command setup:install ` cat .magento.setup.params | tr ' \n ' ' ' ` ;
5559 cd public_html && docker-compose run --rm deploy magento-command module:disable Magento_TwoFactorAuth
5660 cd public_html && docker-compose run --rm deploy magento-command cache:flush
61+ cd public_html && docker-compose run --rm deploy magento-command deploy:mode:set production -s
62+ cd public_html && docker-compose run --rm deploy magento-command setup:static-content:deploy --jobs 4
63+ cd public_html && docker-compose run --rm deploy magento-command setup:di:compile
5764
5865dev-up : # # Spin development environment up
5966 docker-compose -f ./public_html/docker-compose.yml up -d
0 commit comments