Skip to content
forked from psaia/Peach

A cute javascript/html5 app to safely migrate a database with serialized PHP objects.

Notifications You must be signed in to change notification settings

LevInteractive/Peach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

As you probably know, migrating a WordPress database from one domain to another can be a bit of a hassle. Two major things must happen for it to be a seamless migration; Find & replace the domain and fix the serialized url's containing the old domain. This tool does that for you. No need to run a bash script on every migration. Simply drag the sql dump into the square and set a new domain.


# Use

### Frontend
For front-end use see ui.js in the assets directory. It's probably easier just to use the online verson: http://petesaia.github.io/Peach/

### Backend
Peach can be useful for continuous integration when working with Wordpress sites.

```javascript
var Peach = require("peach");
var dbdump = fs.readFileSync("./old-database.sql");
var oldDomain = Peach.wp_domain(dbdump);
var newDbDump = Peach.migrate(dbdump, oldDomain, "http://your-new-domain.com");

// ... Do stuff with newDbDump!
```
# Testing
Tests are wrtten in mocha.

```bash
npm install
npm test
```

About

A cute javascript/html5 app to safely migrate a database with serialized PHP objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published