Turn on Maintenance
php bin/magento maintenance:enable |
Upload to your Magento2 root directory and extract
For .tar.gz
package use the below command
tar -xf pos-lite-v1.0.2.zip -C ./ |
For .zip
package use the below command
unzip pos-lite-v1.0.2.zip -d ./ |
Copy the POS code to
cp -R Magestore/ app/code/Magestore |
Turn on Developer mode
php bin/magento deploy:mode:set developer |
Set indexer mode to real-time
php bin/magento indexer:set-mode realtime |
Run Magento upgrade to Install POS
php bin/magento setup:upgrade |
Deploy POS client apps
php bin/magento webpos:deploy |
Run code compilation
php bin/magento setup:di:compile |
Adjust the Redis session configuration
Adjust manually
Open file app/etc/env.php
in your favorite editor
Scroll down to the session
section below
Edit the value max_concurrency to a suitable number. Magento recommends we set that number by 10% of the number of PHP processes. If you don’t know that then try in the range from 6 to 24 is fine. For example: 20.
Adjust by command
php bin/magento setup:config:set --session-save=redis --session-save-redis-max-concurrency=20 |
Set indexer mode back to schedule
php bin/magento indexer:set-mode schedule |
Reindex all
php bin/magento indexer:reindex |
Turn on production mode
php bin/magento deploy:mode:set production |
Turn off maintenance
php bin/magento maintenance:disable |