Skip to content

Instantly share code, notes, and snippets.

@sumitpore
Created February 7, 2019 13:58
Show Gist options
  • Save sumitpore/62c3b53b8c365f5ccf6613ee62e79592 to your computer and use it in GitHub Desktop.
Save sumitpore/62c3b53b8c365f5ccf6613ee62e79592 to your computer and use it in GitHub Desktop.
Custom command to clone remote website on local machine
// Purpose of the command is to clone remote site on local machine.
// NOTE: It is required to have wordmove installed, WP installed at /var/www/html/test-site & wordmove yml config to be present in /var/www/html/test-site directory
alias clone_site='sudo chmod -R 775 /var/www/html/test-site && sudo chown -R www-data:sumit /var/www/html/test-site && sudo -- sh -c "su www-data -s /bin/sh -c '"'"'cd /var/www/html/test-site && wordmove pull -tpmudv -e staging'"'"'"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment