Skip to content

Instantly share code, notes, and snippets.

@amonger
Created February 6, 2014 00:41
Show Gist options
  • Save amonger/8836355 to your computer and use it in GitHub Desktop.
Save amonger/8836355 to your computer and use it in GitHub Desktop.
Phing Build Remote
<?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="user"/>
<property name="remote_pass" value="pass"/>
<target name="production">
<exec command="cd site" />
<echo msg="Pulling down latest git version"/>
<exec command="git pull" />
<echo msg="Updating dependancies"/>
<exec command="composer.phar update" />
<echo msg="Dumping autoload"/>
<exec command="composer.phar dump-autoload -o" />
<echo msg="Clearing the cache"/>
<exec command="rm -rf ./cache/*" />
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment