Skip to content

Instantly share code, notes, and snippets.

@amonger
Created February 6, 2014 00:39
Show Gist options
  • Save amonger/8836319 to your computer and use it in GitHub Desktop.
Save amonger/8836319 to your computer and use it in GitHub Desktop.
Phing build.xml
<?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