php -f bin/magento setup:install --base-url=http://example.com/ --backend-frontname=admin --db-host=localhost --db-name=magento --db-user=magento --db-password=password123 --admin-firstname=Magento --admin-lastname=User [email protected] --admin-user=admin --admin-password=dbpass321 --language=en_US --currency=USD --timezone=America/Los_Angeles --use-rewrites=1
CRON JOBS: (under web server user/group)
*/1 * * * * /usr/bin/php /var/www/example.com/current/bin/magento cron:run >> /var/www/example.com/current/var/log/cron.run.log &
*/1 * * * * /usr/bin/php /var/www/example.com/current/update/cron.php >> /var/www/example.com/current/var/log/cron.php.log &
*/1 * * * * /usr/bin/php /var/www/example.com/current/bin/magento setup:cron:run >> /var/www/example.com/current/var/log/setup.cron.run.log &
composer require amzn/amazon-payments-magento-2-plugin:^1.1.0
php bin/magento module:enable Amazon_Core Amazon_Login Amazon_Payment
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy xx_XX
yy_YY where xx_XX, yy_YY, ... are the locales you are aiming to support
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install nodejs
php bin/magento setup:upgrade;
php bin/magento setup:di:compile;
php bin/magento setup:static-content:deploy;
deploy:mode:set developer
deploy:mode:set production
chmod +x vendor/oyejorge/less.php/bin/lessc
npm install -g grunt-cli
grunt less:templatename
grunt exec:templatename
maintenance:disable
maintenance:enable
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
Install via apt
sudo apt update;sudo apt install elasticsearch
edit /etc/elasticsearch/elasticsearch.yml
add to memory section
index.query.bool.max_clause_count: 10024
sudo update-rc.d elasticsearch defaults 95 10
sudo /etc/init.d/elasticsearch start
curl http://localhost:9200
bin/magento setup:static-content:deploy
bin/magento setup:di:compile
bin/magento deploy:mode:set -s production
bin/magento index:reindex
bin/magento cache:flush
BUILD NOTES
ln -sfT target link
Fix blank categories:
UPDATE catalog_category_entity_varchar SET value='2columns-left' WHERE value = 'category_two_columns_left'
SELECT * FROM catalog_category_entity_varchar WHERE value = 'category_two_columns_left'
composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool
composer require magento/data-migration-tool:<version>
REFERENCES
m2 provisioning scripts
- https://github.com/DavidLambauer/awesome-magento2
- https://github.com/aleron75/mageres
- https://github.com/sunel/awesome-magento
- https://github.com/tshabatyn/magento2devbox-web
- https://github.com/ziadoz/awesome-php
- https://github.com/sitewards/headless-magento2-resources Headless
- https://www.maxpronko.com/blog/improving-performance-when-upgrading-magento-2-elastic-file-system
- Direct to S3 Magento2 extension removing need for NFS https://github.com/thaiphan/magento2-s3/wiki/Installation