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.' );