docker-magento
docker-magento copied to clipboard
Create bin/deploy
I've extended your magnificent setup with this bin command to deploy the changes in my setup.
Might it be useful to others in this project too?
#!/usr/bin/env bash
bin/composer install;
bin/magento maintenance:enable;
bin/cli rm -rf generated/code var/view_preprocessed;
echo "$ bin/magento cache:flush";
bin/magento cache:flush;
echo "$ bin/magento setup:upgrade";
bin/magento setup:upgrade;
echo "$ bin/ magento setup:di:compile";
bin/magento setup:di:compile;
echo "$ bin/magento setup:static-content:deploy nl_NL en_US -f";
bin/magento setup:static-content:deploy nl_NL en_US -f;
bin/magento maintenance:disable;
bin/magento cache:flush;
PR Summary
- Introduction of New Deployment Script
A new file named
compose/bin/deployhas been added to the project. This file houses a bash script designed to execute the standard deployment process commands for Magento. This addition simplifies the deployment procedure, automating what were previously manual tasks, thus reducing the risk of deployment-related errors.
@markshust is this addition something that can be added to the setup?
@hans2103 sorry in the delay, I've been MIA when it came to OSS this year.
Looks great, I like it! I made some updates to standardize this script so it matches the other formats (removing semicolons, etc.) and added the bin/deploy line to the REAMDE so others know how to use it.
Appreciate it! 👍