This should work for Debian or Debian-deriviants (e.g., Ubuntu)
Install transmission-daemon
sudo apt-get install transmission-daemon
#!/bin/bash | |
create_db="CREATE DATABASE $1 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" | |
create_user="GRANT ALL PRIVILEGES ON $1.* TO '$1'@'localhost' IDENTIFIED BY '$1';" | |
flush="FLUSH PRIVILEGES;" | |
mysql -u root -p -e "${create_db}${create_user}${flush}" | |
mkdir $1.local | |
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition $1.local |
#!/bin/bash | |
# https://mirasvit.com/blog/common-issues-and-few-hacks-with-magento-2-full-page-cache.html | |
cd app/design/frontend/ && grep --recursive -l 'cacheable="false"' * && cd ../../..; | |
cd app/code && grep --recursive -l 'cacheable="false"' * && cd ../..; | |
cd vendor && grep --recursive -l 'cacheable="false"' * && cd ..; |