Permalink
Browse files

fixed DB version error

  • Loading branch information...
wycks committed Aug 3, 2013
1 parent 4003ef5 commit 9be868da153ed133bbc61d0f199933f224a2c2e2
Showing with 9 additions and 5 deletions.
  1. +2 −2 README.md
  2. +3 −3 build.properties
  3. +4 −0 build.xml
View
@@ -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`)
View
@@ -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)
@@ -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.
View
@@ -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');

0 comments on commit 9be868d

Please sign in to comment.