docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Create bin/deploy

Open hans2103 opened this issue 2 years ago • 1 comments

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;

hans2103 avatar May 17 '23 09:05 hans2103

PR Summary

  • Introduction of New Deployment Script A new file named compose/bin/deploy has 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.

what-the-diff[bot] avatar May 17 '23 09:05 what-the-diff[bot]

@markshust is this addition something that can be added to the setup?

hans2103 avatar Oct 11 '23 08:10 hans2103

@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! 👍

markshust avatar Nov 21 '23 20:11 markshust