You’ll start by cloning this repo into your sites folder.
- Click Clone on the right side.
- Click the copy to clipboard icon.
- In iTerm (or your preferred terminal)
cd
to your sites folder. - Paste the copied text and run the command.
cd
into the folder (dump-crawler) and runcomposer install
Next you’ll add these lines to your .zshrc (or .bash_profile) file:
# remove trailing dd's
function cleanup() {
projectPath="${PWD}"
cd ~/Sites/dump-crawler && ./dump clean "${projectPath}" && cd "${projectPath}"
}
After changing those lines do not forget to restart your terminal (or run the source
command).
NOTE: if your sites folder is located in a different place, then update the path accordingly.
In your terminal, and within the project you would like to crawl, run the command cleanup
.