This bundle integrates "darvinstudio/databaser" with Symfony. It allows to easily pull remote database into the local one or push local database into the remote one.
- Install package using Composer:
$ composer require darvinstudio/darvin-databaser-bundle
- Register bundle in your AppKernel class:
// app/AppKernel.php
public function registerBundles()
{
$bundles = [
// ...
new Darvin\DatabaserBundle\DarvinDatabaserBundle(),
// ...
];
}
$ /usr/bin/env php bin/console databaser:pull [-k|--key [KEY]] [-p|--password] [-P|--port [PORT]] <user@host> <project_path_remote> [<project_path_local>]
Examples:
$ /usr/bin/env php bin/console databaser:pull [email protected] www/example.com
$ /usr/bin/env php bin/console databaser:pull -P 123 [email protected] /var/www/example.com
$ /usr/bin/env php bin/console databaser:push [-k|--key [KEY]] [-p|--password] [-P|--port [PORT]] <user@host> <project_path_remote> [<project_path_local>]
Examples:
$ /usr/bin/env php bin/console databaser:push [email protected] www/example.com
$ /usr/bin/env php bin/console databaser:push -P 123 [email protected] /var/www/example.com