Created
May 16, 2021 20:40
-
-
Save medigeek/b3f404aa3e290b5de4a8425cb6e1614e to your computer and use it in GitHub Desktop.
magento 2 litemage crawler script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 1. prepare a sitemap url for the site in magento 2 | |
# 2. download M2-crawler.sh from https://docs.litespeedtech.com/lscache/litemage/crawler/ | |
# 3. add this script. it will run for 43200 seconds (12 hours) and stop. | |
cd "$(dirname "$0")" | |
#timeout after x seconds | |
echo "Starting litemage crawler script in $PWD" | |
timeout 43200 bash M2-crawler.sh -m -r https://example.com/media/sitemap.xml || echo "Process Litemage crawler timed out" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment