From 8bf81f5357478091d1103b24f443e62fb00c31eb Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Thu, 13 Mar 2014 15:28:56 +0100 Subject: [PATCH] Push db now uses wp db import instead of mysql shell --- deploy.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deploy.php b/deploy.php index 3dd4e7f..3ee2ad0 100644 --- a/deploy.php +++ b/deploy.php @@ -422,8 +422,7 @@ private function push_db() { $runner->add( "ssh $c->ssh 'cd $c->path;" - . " mysql --user=$c->db_user --password=$c->db_password --host=$c->db_host" - . " $c->db_name < $server_file'", + . " sh -l -c \"wp --path=$c->wp db import $server_file\"'", 'Deployed the database on server.', 'Failed deploying the db on server.' );