Skip to content

Commit

Permalink
fixed DB version error
Browse files Browse the repository at this point in the history
  • Loading branch information
wycks committed Aug 3, 2013
1 parent 4003ef5 commit 9be868d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -7,15 +7,15 @@ WordPress build script using [Phing](http://www.phing.info/).
- Simple config file and commands to run


*Phing has no dependencies other than PHP, so it will run anywhere PHP does (unlike Apache Ant/Cappicino/Rails/Grunt/Yeoman, etc). It should work right out of the box on most PHP stacks. Some of the advanced options might require additional installations of PHP/PEAR packages*
*Phing has no dependencies other than PHP, so it will run anywhere PHP does (unlike Apache Ant/Cappicino/Rails/Grunt/, etc). It should work right out of the box on most PHP stacks. Some of the advanced options might require additional installations of PHP/PEAR packages*

## Features

**Installation**

- Creation of a new database (optional)
- Downloads and installs WordPress (latest stable or nightly)
- Download and installs plugins and/or themes (http transfer and zip format)
- Download and installs plugins and/or themes (http transfer / zip format)
- Appends info to your wp-config automatically
- Runs the WP install script (by-passes the 5 minute install)
- Custom install parameters (optional via `boot.php`)
Expand Down
6 changes: 3 additions & 3 deletions build.properties
Expand Up @@ -6,11 +6,11 @@

#Full path directory where you want to install WordPress
#Required
build.dir.wp=D:\Sites\Foo17
build.dir.wp=D:\Sites\Foo18

#The database name you want to create or are using.
#Required
build.db.name=foo_17
build.db.name=foo_18

#Working directory
# Leave as is unless you want to work on a different directory than set above (for git, minify, etc)
Expand All @@ -19,7 +19,7 @@ build.dir.work=${build.dir.wp}
#This is your actual working URL based on your own config/hosts file (http://localhost or ..)
#If you mess this up it will still install WP but you will have to fix it in the database.
#Recommended
build.dir.actual=http://dev.local/Foo17
build.dir.actual=http://dev.local/Foo18

#Database info
#This will also be entered into the wp-config.php.
Expand Down
4 changes: 4 additions & 0 deletions build.xml
Expand Up @@ -382,6 +382,10 @@
$result = wp_install( '${build.wp.title}', '${build.wp.user}', '${build.wp.email}', $public, '', '${build.wp.password}' );
//we need to update the db version for some reason
require('${build.dir.wp}/wp-includes/version.php');
update_option( 'db_version', $wp_db_version );
//edit this script, do not edit this class directly
require('${project.basedir}/boot.php');
Expand Down

0 comments on commit 9be868d

Please sign in to comment.