Created
April 10, 2014 07:14
-
-
Save dilab/10350656 to your computer and use it in GitHub Desktop.
This phing snippet will help you run "git pull" on remote server from your local dev machine
This file contains 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
<?xml version="1.0" encoding="UTF-8" ?> | |
<project name="Awesome Application" default="update"> | |
<target name="update" description=""> | |
<property name="username" value="" /> | |
<property name="hostname" value="" /> | |
<property name="public_path" value="/srv/www/your-app/public_html" /> | |
<exec outputProperty="result" | |
command="ssh ${username}@${hostname} 'cd ${public_path}; git pull;'" /> | |
<echo msg="${result}" /> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment