-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
20 lines (18 loc) · 1.25 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<project name="zip-recipes" default="staging_setup">
<property name="git-repo" value="/Users/gezimhoxha/projects/ziprecipes.net/zip-recipes/git" />
<target name="staging_setup">
<!-- # We don't need to download a new version every single time -->
<!--curl https://wordpress.org/latest.tar.gz | tar xz-->
<property name="htdocs" value="/Applications/MAMP/htdocs/" />
<property name="mysql_bin" value="/Applications/MAMP/Library/bin/mysql" />
<!--<exec command="curl https://wordpress.org/latest.tar.gz | tar xz" dir="${htdocs}"-->
<!--checkreturn="true" description="Download latest WP" />-->
<exec command="rm -rf stageblog" dir="${htdocs}" checkreturn="true"
description="Remove old stageblog" />
<exec command="cp -r ${htdocs}/wordpress stageblog" dir="${htdocs}" description="Copy WP to stageblog" />
<exec command="${mysql_bin} -u root -proot -e 'drop database stage_blog; create database stage_blog'"
escape="false" dir="${htdocs}" description="Drop old stageblog db and create new one." />
<exec command="open 'http://localhost:8888/stageblog'" description="Open stageblog in browser." />
</target>
</project>