Created
February 7, 2019 13:58
-
-
Save sumitpore/62c3b53b8c365f5ccf6613ee62e79592 to your computer and use it in GitHub Desktop.
Custom command to clone remote website on local machine
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
// 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