Skip to content

Instantly share code, notes, and snippets.

View anderles's full-sized avatar
🇺🇦
Talk is cheap, show me the code.

Andrii Boyko anderles

🇺🇦
Talk is cheap, show me the code.
View GitHub Profile
@anderles
anderles / smart_reindex_and_check.sh
Last active April 28, 2025 00:01
Product category reindex
#!/bin/bash
echo "Magento 2: Smart Reindex & Category Product Check 🚀"
echo "----------------------------------------------------"
# Check if we are in the Magento root directory
if [ ! -f "bin/magento" ]; then
echo "⛔ Error: This script must be run from the Magento project root."
exit 1
fi
@anderles
anderles / mageos_initial_install
Last active February 16, 2025 02:49
MageOS initial install
mkdir mageos && \
cd mageos && \
composer create-project --repository-url=https://repo.mage-os.org/ mage-os/project-community-edition . && \
bin/magento setup:install \
--db-host=DATABASE_HOST \
--db-name=DATABASE_NAME \
--db-user=DATABASE_USER \
--db-password=DATABASE_PASSWORD \
--base-url=https://www.example.com/ \
--base-url-secure=https://www.example.com/ \