Created
February 6, 2014 00:39
-
-
Save amonger/8836319 to your computer and use it in GitHub Desktop.
Phing build.xml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Deploy" default="production" basedir="." description="A deployment Script"> | |
<property name="remote_host" value="host.com"/> | |
<property name="remote_user" value="username"/> | |
<property name="remote_pass" value="password"/> | |
<target name="production"> | |
<echo msg="Uploading remote phing script"/> | |
<scp host="${remote_host}" username="${remote_user}" password="${remote_pass}" | |
todir="/home/learnmango/phing-example" | |
file="remotebuild.xml" /> | |
<ssh host="${remote_host}" username="${remote_user}" password="${remote_pass}" | |
command="cd phing-example; phing remotebuild.xml; mv remotebuild.xml build.xml" /> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment